@mui/x-data-grid 6.1.0 → 6.2.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 +53 -1
- package/components/GridPagination.d.ts +2 -2
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.js +37 -29
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -30
- package/hooks/features/rowSelection/useGridRowSelection.js +5 -26
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +36 -16
- package/index.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +37 -29
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -30
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +5 -24
- package/legacy/index.js +1 -1
- package/legacy/locales/frFR.js +7 -9
- package/legacy/locales/urPK.js +6 -6
- package/legacy/utils/utils.js +1 -1
- package/locales/frFR.js +7 -9
- package/locales/urPK.js +6 -6
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +36 -28
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +33 -29
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +5 -26
- package/modern/index.js +1 -1
- package/modern/locales/frFR.js +7 -9
- package/modern/locales/urPK.js +6 -6
- package/modern/utils/utils.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +36 -28
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +32 -29
- package/node/hooks/features/rowSelection/useGridRowSelection.js +4 -25
- package/node/index.js +1 -1
- package/node/locales/frFR.js +7 -9
- package/node/locales/urPK.js +6 -6
- package/node/utils/utils.js +1 -1
- package/package.json +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.js +1 -1
|
@@ -125,6 +125,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
125
125
|
breakInside?: import("csstype").Property.BreakInside | undefined;
|
|
126
126
|
captionSide?: import("csstype").Property.CaptionSide | undefined;
|
|
127
127
|
caretColor?: import("csstype").Property.CaretColor | undefined;
|
|
128
|
+
caretShape?: import("csstype").Property.CaretShape | undefined;
|
|
128
129
|
clear?: import("csstype").Property.Clear | undefined;
|
|
129
130
|
clipPath?: import("csstype").Property.ClipPath | undefined;
|
|
130
131
|
color?: import("csstype").Property.Color | undefined;
|
|
@@ -139,6 +140,12 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
139
140
|
columnSpan?: import("csstype").Property.ColumnSpan | undefined;
|
|
140
141
|
columnWidth?: import("csstype").Property.ColumnWidth<string | number> | undefined;
|
|
141
142
|
contain?: import("csstype").Property.Contain | undefined;
|
|
143
|
+
containIntrinsicBlockSize?: import("csstype").Property.ContainIntrinsicBlockSize<string | number> | undefined;
|
|
144
|
+
containIntrinsicHeight?: import("csstype").Property.ContainIntrinsicHeight<string | number> | undefined;
|
|
145
|
+
containIntrinsicInlineSize?: import("csstype").Property.ContainIntrinsicInlineSize<string | number> | undefined;
|
|
146
|
+
containIntrinsicWidth?: import("csstype").Property.ContainIntrinsicWidth<string | number> | undefined;
|
|
147
|
+
containerName?: import("csstype").Property.ContainerName | undefined;
|
|
148
|
+
containerType?: import("csstype").Property.ContainerType | undefined;
|
|
142
149
|
content?: import("csstype").Property.Content | undefined;
|
|
143
150
|
contentVisibility?: import("csstype").Property.ContentVisibility | undefined;
|
|
144
151
|
counterIncrement?: import("csstype").Property.CounterIncrement | undefined;
|
|
@@ -160,6 +167,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
160
167
|
fontKerning?: import("csstype").Property.FontKerning | undefined;
|
|
161
168
|
fontLanguageOverride?: import("csstype").Property.FontLanguageOverride | undefined;
|
|
162
169
|
fontOpticalSizing?: import("csstype").Property.FontOpticalSizing | undefined;
|
|
170
|
+
fontPalette?: import("csstype").Property.FontPalette | undefined;
|
|
163
171
|
fontSize?: import("csstype").Property.FontSize<string | number> | undefined;
|
|
164
172
|
fontSizeAdjust?: import("csstype").Property.FontSizeAdjust | undefined;
|
|
165
173
|
fontSmooth?: import("csstype").Property.FontSmooth<string | number> | undefined;
|
|
@@ -170,6 +178,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
170
178
|
fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
|
|
171
179
|
fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
|
|
172
180
|
fontVariantEastAsian?: import("csstype").Property.FontVariantEastAsian | undefined;
|
|
181
|
+
fontVariantEmoji?: import("csstype").Property.FontVariantEmoji | undefined;
|
|
173
182
|
fontVariantLigatures?: import("csstype").Property.FontVariantLigatures | undefined;
|
|
174
183
|
fontVariantNumeric?: import("csstype").Property.FontVariantNumeric | undefined;
|
|
175
184
|
fontVariantPosition?: import("csstype").Property.FontVariantPosition | undefined;
|
|
@@ -189,6 +198,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
189
198
|
hangingPunctuation?: import("csstype").Property.HangingPunctuation | undefined;
|
|
190
199
|
height?: import("csstype").Property.Height<string | number> | undefined;
|
|
191
200
|
hyphenateCharacter?: import("csstype").Property.HyphenateCharacter | undefined;
|
|
201
|
+
hyphenateLimitChars?: import("csstype").Property.HyphenateLimitChars | undefined;
|
|
192
202
|
hyphens?: import("csstype").Property.Hyphens | undefined;
|
|
193
203
|
imageOrientation?: import("csstype").Property.ImageOrientation | undefined;
|
|
194
204
|
imageRendering?: import("csstype").Property.ImageRendering | undefined;
|
|
@@ -196,11 +206,8 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
196
206
|
initialLetter?: import("csstype").Property.InitialLetter | undefined;
|
|
197
207
|
inlineSize?: import("csstype").Property.InlineSize<string | number> | undefined;
|
|
198
208
|
inputSecurity?: import("csstype").Property.InputSecurity | undefined;
|
|
199
|
-
inset?: import("csstype").Property.Inset<string | number> | undefined;
|
|
200
|
-
insetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
|
|
201
209
|
insetBlockEnd?: import("csstype").Property.InsetBlockEnd<string | number> | undefined;
|
|
202
210
|
insetBlockStart?: import("csstype").Property.InsetBlockStart<string | number> | undefined;
|
|
203
|
-
insetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
|
|
204
211
|
insetInlineEnd?: import("csstype").Property.InsetInlineEnd<string | number> | undefined;
|
|
205
212
|
insetInlineStart?: import("csstype").Property.InsetInlineStart<string | number> | undefined;
|
|
206
213
|
isolation?: import("csstype").Property.Isolation | undefined;
|
|
@@ -216,16 +223,15 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
216
223
|
listStyleImage?: import("csstype").Property.ListStyleImage | undefined;
|
|
217
224
|
listStylePosition?: import("csstype").Property.ListStylePosition | undefined;
|
|
218
225
|
listStyleType?: import("csstype").Property.ListStyleType | undefined;
|
|
219
|
-
marginBlock?: import("csstype").Property.MarginBlock<string | number> | undefined;
|
|
220
226
|
marginBlockEnd?: import("csstype").Property.MarginBlockEnd<string | number> | undefined;
|
|
221
227
|
marginBlockStart?: import("csstype").Property.MarginBlockStart<string | number> | undefined;
|
|
222
228
|
marginBottom?: import("csstype").Property.MarginBottom<string | number> | undefined;
|
|
223
|
-
marginInline?: import("csstype").Property.MarginInline<string | number> | undefined;
|
|
224
229
|
marginInlineEnd?: import("csstype").Property.MarginInlineEnd<string | number> | undefined;
|
|
225
230
|
marginInlineStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
|
|
226
231
|
marginLeft?: import("csstype").Property.MarginLeft<string | number> | undefined;
|
|
227
232
|
marginRight?: import("csstype").Property.MarginRight<string | number> | undefined;
|
|
228
233
|
marginTop?: import("csstype").Property.MarginTop<string | number> | undefined;
|
|
234
|
+
marginTrim?: import("csstype").Property.MarginTrim | undefined;
|
|
229
235
|
maskBorderMode?: import("csstype").Property.MaskBorderMode | undefined;
|
|
230
236
|
maskBorderOutset?: import("csstype").Property.MaskBorderOutset<string | number> | undefined;
|
|
231
237
|
maskBorderRepeat?: import("csstype").Property.MaskBorderRepeat | undefined;
|
|
@@ -262,6 +268,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
262
268
|
offsetAnchor?: import("csstype").Property.OffsetAnchor<string | number> | undefined;
|
|
263
269
|
offsetDistance?: import("csstype").Property.OffsetDistance<string | number> | undefined;
|
|
264
270
|
offsetPath?: import("csstype").Property.OffsetPath | undefined;
|
|
271
|
+
offsetPosition?: import("csstype").Property.OffsetPosition<string | number> | undefined;
|
|
265
272
|
offsetRotate?: import("csstype").Property.OffsetRotate | undefined;
|
|
266
273
|
offsetRotation?: import("csstype").Property.OffsetRotate | undefined;
|
|
267
274
|
opacity?: import("csstype").Property.Opacity | undefined;
|
|
@@ -283,23 +290,21 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
283
290
|
overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
|
|
284
291
|
overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
|
|
285
292
|
overscrollBehaviorY?: import("csstype").Property.OverscrollBehaviorY | undefined;
|
|
286
|
-
paddingBlock?: import("csstype").Property.PaddingBlock<string | number> | undefined;
|
|
287
293
|
paddingBlockEnd?: import("csstype").Property.PaddingBlockEnd<string | number> | undefined;
|
|
288
294
|
paddingBlockStart?: import("csstype").Property.PaddingBlockStart<string | number> | undefined;
|
|
289
295
|
paddingBottom?: import("csstype").Property.PaddingBottom<string | number> | undefined;
|
|
290
|
-
paddingInline?: import("csstype").Property.PaddingInline<string | number> | undefined;
|
|
291
296
|
paddingInlineEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
|
|
292
297
|
paddingInlineStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
|
|
293
298
|
paddingLeft?: import("csstype").Property.PaddingLeft<string | number> | undefined;
|
|
294
299
|
paddingRight?: import("csstype").Property.PaddingRight<string | number> | undefined;
|
|
295
300
|
paddingTop?: import("csstype").Property.PaddingTop<string | number> | undefined;
|
|
301
|
+
page?: import("csstype").Property.Page | undefined;
|
|
296
302
|
pageBreakAfter?: import("csstype").Property.PageBreakAfter | undefined;
|
|
297
303
|
pageBreakBefore?: import("csstype").Property.PageBreakBefore | undefined;
|
|
298
304
|
pageBreakInside?: import("csstype").Property.PageBreakInside | undefined;
|
|
299
305
|
paintOrder?: import("csstype").Property.PaintOrder | undefined;
|
|
300
306
|
perspective?: import("csstype").Property.Perspective<string | number> | undefined;
|
|
301
307
|
perspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
|
|
302
|
-
placeContent?: import("csstype").Property.PlaceContent | undefined;
|
|
303
308
|
pointerEvents?: import("csstype").Property.PointerEvents | undefined;
|
|
304
309
|
position?: import("csstype").Property.Position | undefined;
|
|
305
310
|
printColorAdjust?: import("csstype").Property.PrintColorAdjust | undefined;
|
|
@@ -313,36 +318,31 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
313
318
|
rubyPosition?: import("csstype").Property.RubyPosition | undefined;
|
|
314
319
|
scale?: import("csstype").Property.Scale | undefined;
|
|
315
320
|
scrollBehavior?: import("csstype").Property.ScrollBehavior | undefined;
|
|
316
|
-
scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
317
|
-
scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
|
|
318
321
|
scrollMarginBlockEnd?: import("csstype").Property.ScrollMarginBlockEnd<string | number> | undefined;
|
|
319
322
|
scrollMarginBlockStart?: import("csstype").Property.ScrollMarginBlockStart<string | number> | undefined;
|
|
320
323
|
scrollMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
|
|
321
|
-
scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
|
|
322
324
|
scrollMarginInlineEnd?: import("csstype").Property.ScrollMarginInlineEnd<string | number> | undefined;
|
|
323
325
|
scrollMarginInlineStart?: import("csstype").Property.ScrollMarginInlineStart<string | number> | undefined;
|
|
324
326
|
scrollMarginLeft?: import("csstype").Property.ScrollMarginLeft<string | number> | undefined;
|
|
325
327
|
scrollMarginRight?: import("csstype").Property.ScrollMarginRight<string | number> | undefined;
|
|
326
328
|
scrollMarginTop?: import("csstype").Property.ScrollMarginTop<string | number> | undefined;
|
|
327
|
-
scrollPadding?: import("csstype").Property.ScrollPadding<string | number> | undefined;
|
|
328
|
-
scrollPaddingBlock?: import("csstype").Property.ScrollPaddingBlock<string | number> | undefined;
|
|
329
329
|
scrollPaddingBlockEnd?: import("csstype").Property.ScrollPaddingBlockEnd<string | number> | undefined;
|
|
330
330
|
scrollPaddingBlockStart?: import("csstype").Property.ScrollPaddingBlockStart<string | number> | undefined;
|
|
331
331
|
scrollPaddingBottom?: import("csstype").Property.ScrollPaddingBottom<string | number> | undefined;
|
|
332
|
-
scrollPaddingInline?: import("csstype").Property.ScrollPaddingInline<string | number> | undefined;
|
|
333
332
|
scrollPaddingInlineEnd?: import("csstype").Property.ScrollPaddingInlineEnd<string | number> | undefined;
|
|
334
333
|
scrollPaddingInlineStart?: import("csstype").Property.ScrollPaddingInlineStart<string | number> | undefined;
|
|
335
334
|
scrollPaddingLeft?: import("csstype").Property.ScrollPaddingLeft<string | number> | undefined;
|
|
336
335
|
scrollPaddingRight?: import("csstype").Property.ScrollPaddingRight<string | number> | undefined;
|
|
337
336
|
scrollPaddingTop?: import("csstype").Property.ScrollPaddingTop<string | number> | undefined;
|
|
338
337
|
scrollSnapAlign?: import("csstype").Property.ScrollSnapAlign | undefined;
|
|
339
|
-
scrollSnapMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
340
338
|
scrollSnapMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
|
|
341
339
|
scrollSnapMarginLeft?: import("csstype").Property.ScrollMarginLeft<string | number> | undefined;
|
|
342
340
|
scrollSnapMarginRight?: import("csstype").Property.ScrollMarginRight<string | number> | undefined;
|
|
343
341
|
scrollSnapMarginTop?: import("csstype").Property.ScrollMarginTop<string | number> | undefined;
|
|
344
342
|
scrollSnapStop?: import("csstype").Property.ScrollSnapStop | undefined;
|
|
345
343
|
scrollSnapType?: import("csstype").Property.ScrollSnapType | undefined;
|
|
344
|
+
scrollTimelineAxis?: import("csstype").Property.ScrollTimelineAxis | undefined;
|
|
345
|
+
scrollTimelineName?: import("csstype").Property.ScrollTimelineName | undefined;
|
|
346
346
|
scrollbarColor?: import("csstype").Property.ScrollbarColor | undefined;
|
|
347
347
|
scrollbarGutter?: import("csstype").Property.ScrollbarGutter | undefined;
|
|
348
348
|
scrollbarWidth?: import("csstype").Property.ScrollbarWidth | undefined;
|
|
@@ -387,6 +387,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
387
387
|
unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
|
|
388
388
|
userSelect?: import("csstype").Property.UserSelect | undefined;
|
|
389
389
|
verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
|
|
390
|
+
viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
|
|
390
391
|
visibility?: import("csstype").Property.Visibility | undefined;
|
|
391
392
|
whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
|
|
392
393
|
widows?: import("csstype").Property.Widows | undefined;
|
|
@@ -418,8 +419,11 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
418
419
|
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
419
420
|
borderTop?: import("csstype").Property.BorderTop<string | number> | undefined;
|
|
420
421
|
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
422
|
+
caret?: import("csstype").Property.Caret | undefined;
|
|
421
423
|
columnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
|
|
422
424
|
columns?: import("csstype").Property.Columns<string | number> | undefined;
|
|
425
|
+
containIntrinsicSize?: import("csstype").Property.ContainIntrinsicSize<string | number> | undefined;
|
|
426
|
+
container?: import("csstype").Property.Container | undefined;
|
|
423
427
|
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
424
428
|
flexFlow?: import("csstype").Property.FlexFlow | undefined;
|
|
425
429
|
font?: import("csstype").Property.Font | undefined;
|
|
@@ -429,9 +433,14 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
429
433
|
gridColumn?: import("csstype").Property.GridColumn | undefined;
|
|
430
434
|
gridRow?: import("csstype").Property.GridRow | undefined;
|
|
431
435
|
gridTemplate?: import("csstype").Property.GridTemplate | undefined;
|
|
436
|
+
inset?: import("csstype").Property.Inset<string | number> | undefined;
|
|
437
|
+
insetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
|
|
438
|
+
insetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
|
|
432
439
|
lineClamp?: import("csstype").Property.LineClamp | undefined;
|
|
433
440
|
listStyle?: import("csstype").Property.ListStyle | undefined;
|
|
434
441
|
margin?: import("csstype").Property.Margin<string | number> | undefined;
|
|
442
|
+
marginBlock?: import("csstype").Property.MarginBlock<string | number> | undefined;
|
|
443
|
+
marginInline?: import("csstype").Property.MarginInline<string | number> | undefined;
|
|
435
444
|
mask?: import("csstype").Property.Mask<string | number> | undefined;
|
|
436
445
|
maskBorder?: import("csstype").Property.MaskBorder | undefined;
|
|
437
446
|
motion?: import("csstype").Property.Offset<string | number> | undefined;
|
|
@@ -440,8 +449,19 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
440
449
|
overflow?: import("csstype").Property.Overflow | undefined;
|
|
441
450
|
overscrollBehavior?: import("csstype").Property.OverscrollBehavior | undefined;
|
|
442
451
|
padding?: import("csstype").Property.Padding<string | number> | undefined;
|
|
452
|
+
paddingBlock?: import("csstype").Property.PaddingBlock<string | number> | undefined;
|
|
453
|
+
paddingInline?: import("csstype").Property.PaddingInline<string | number> | undefined;
|
|
454
|
+
placeContent?: import("csstype").Property.PlaceContent | undefined;
|
|
443
455
|
placeItems?: import("csstype").Property.PlaceItems | undefined;
|
|
444
456
|
placeSelf?: import("csstype").Property.PlaceSelf | undefined;
|
|
457
|
+
scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
458
|
+
scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
|
|
459
|
+
scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
|
|
460
|
+
scrollPadding?: import("csstype").Property.ScrollPadding<string | number> | undefined;
|
|
461
|
+
scrollPaddingBlock?: import("csstype").Property.ScrollPaddingBlock<string | number> | undefined;
|
|
462
|
+
scrollPaddingInline?: import("csstype").Property.ScrollPaddingInline<string | number> | undefined;
|
|
463
|
+
scrollSnapMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
464
|
+
scrollTimeline?: import("csstype").Property.ScrollTimeline | undefined;
|
|
445
465
|
textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
|
|
446
466
|
textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
|
|
447
467
|
transition?: import("csstype").Property.Transition<string & {}> | undefined;
|
|
@@ -455,6 +475,7 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
455
475
|
MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
|
|
456
476
|
MozAppearance?: import("csstype").Property.MozAppearance | undefined;
|
|
457
477
|
MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
|
|
478
|
+
MozBinding?: import("csstype").Property.MozBinding | undefined;
|
|
458
479
|
MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
|
|
459
480
|
MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
|
|
460
481
|
MozBorderEndStyle?: import("csstype").Property.BorderInlineEndStyle | undefined;
|
|
@@ -735,7 +756,6 @@ export declare const useGridVirtualScroller: (props: UseGridVirtualScrollerProps
|
|
|
735
756
|
MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
|
|
736
757
|
MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
|
|
737
758
|
MozBackgroundSize?: import("csstype").Property.BackgroundSize<string | number> | undefined;
|
|
738
|
-
MozBinding?: import("csstype").Property.MozBinding | undefined;
|
|
739
759
|
MozBorderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
740
760
|
MozBorderRadiusBottomleft?: import("csstype").Property.BorderBottomLeftRadius<string | number> | undefined;
|
|
741
761
|
MozBorderRadiusBottomright?: import("csstype").Property.BorderBottomRightRadius<string | number> | undefined;
|
package/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["item", "applyValue", "apiRef", "focusElementRef"];
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
import { unstable_useId as useId } from '@mui/utils';
|
|
6
7
|
import { useGridRootProps } from '../../../hooks/utils/useGridRootProps';
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
export function GridFilterInputBoolean(props) {
|
|
10
|
-
var _rootProps$slotProps, _baseSelectProps$nati, _rootProps$slotProps2, _rootProps$slotProps3
|
|
11
|
+
var _rootProps$slotProps, _baseSelectProps$nati, _rootProps$slotProps2, _rootProps$slotProps3;
|
|
11
12
|
var item = props.item,
|
|
12
13
|
applyValue = props.applyValue,
|
|
13
14
|
apiRef = props.apiRef,
|
|
@@ -18,6 +19,8 @@ export function GridFilterInputBoolean(props) {
|
|
|
18
19
|
filterValueState = _React$useState2[0],
|
|
19
20
|
setFilterValueState = _React$useState2[1];
|
|
20
21
|
var rootProps = useGridRootProps();
|
|
22
|
+
var labelId = useId();
|
|
23
|
+
var selectId = useId();
|
|
21
24
|
var baseSelectProps = ((_rootProps$slotProps = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps.baseSelect) || {};
|
|
22
25
|
var isSelectNative = (_baseSelectProps$nati = baseSelectProps.native) != null ? _baseSelectProps$nati : true;
|
|
23
26
|
var baseSelectOptionProps = ((_rootProps$slotProps2 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps2.baseSelectOption) || {};
|
|
@@ -31,34 +34,39 @@ export function GridFilterInputBoolean(props) {
|
|
|
31
34
|
React.useEffect(function () {
|
|
32
35
|
setFilterValueState(item.value || '');
|
|
33
36
|
}, [item.value]);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
var label = apiRef.current.getLocaleText('filterPanelInputLabel');
|
|
38
|
+
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
39
|
+
children: [/*#__PURE__*/_jsx(rootProps.slots.baseInputLabel, _extends({}, (_rootProps$slotProps3 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps3.baseInputLabel, {
|
|
40
|
+
id: labelId,
|
|
41
|
+
shrink: true,
|
|
42
|
+
variant: "standard",
|
|
43
|
+
children: label
|
|
44
|
+
})), /*#__PURE__*/_jsxs(rootProps.slots.baseSelect, _extends({
|
|
45
|
+
labelId: labelId,
|
|
46
|
+
id: selectId,
|
|
47
|
+
label: label,
|
|
48
|
+
value: filterValueState,
|
|
49
|
+
onChange: onFilterChange,
|
|
50
|
+
variant: "standard",
|
|
42
51
|
native: isSelectNative,
|
|
43
|
-
displayEmpty: true
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
children: apiRef.current.getLocaleText('filterValueFalse')
|
|
52
|
+
displayEmpty: true,
|
|
53
|
+
inputProps: {
|
|
54
|
+
ref: focusElementRef
|
|
55
|
+
}
|
|
56
|
+
}, others, baseSelectProps, {
|
|
57
|
+
children: [/*#__PURE__*/_jsx(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {
|
|
58
|
+
native: isSelectNative,
|
|
59
|
+
value: "",
|
|
60
|
+
children: apiRef.current.getLocaleText('filterValueAny')
|
|
61
|
+
})), /*#__PURE__*/_jsx(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {
|
|
62
|
+
native: isSelectNative,
|
|
63
|
+
value: "true",
|
|
64
|
+
children: apiRef.current.getLocaleText('filterValueTrue')
|
|
65
|
+
})), /*#__PURE__*/_jsx(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {
|
|
66
|
+
native: isSelectNative,
|
|
67
|
+
value: "false",
|
|
68
|
+
children: apiRef.current.getLocaleText('filterValueFalse')
|
|
69
|
+
}))]
|
|
62
70
|
}))]
|
|
63
|
-
})
|
|
71
|
+
});
|
|
64
72
|
}
|
|
@@ -10,6 +10,7 @@ import { useGridRootProps } from '../../../hooks/utils/useGridRootProps';
|
|
|
10
10
|
import { getValueFromValueOptions, isSingleSelectColDef } from './filterPanelUtils';
|
|
11
11
|
import { createElement as _createElement } from "react";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
var renderSingleSelectOptions = function renderSingleSelectOptions(_ref) {
|
|
14
15
|
var _ref$column = _ref.column,
|
|
15
16
|
valueOptions = _ref$column.valueOptions,
|
|
@@ -33,7 +34,7 @@ var renderSingleSelectOptions = function renderSingleSelectOptions(_ref) {
|
|
|
33
34
|
});
|
|
34
35
|
};
|
|
35
36
|
function GridFilterInputSingleSelect(props) {
|
|
36
|
-
var _item$value, _rootProps$slotProps
|
|
37
|
+
var _item$value, _rootProps$slotProps$, _rootProps$slotProps, _rootProps$slotProps$2, _resolvedColumn, _resolvedColumn2, _rootProps$slotProps2, _rootProps$slotProps3, _rootProps$slotProps4;
|
|
37
38
|
var item = props.item,
|
|
38
39
|
applyValue = props.applyValue,
|
|
39
40
|
type = props.type,
|
|
@@ -47,10 +48,9 @@ function GridFilterInputSingleSelect(props) {
|
|
|
47
48
|
filterValueState = _React$useState2[0],
|
|
48
49
|
setFilterValueState = _React$useState2[1];
|
|
49
50
|
var id = useId();
|
|
51
|
+
var labelId = useId();
|
|
50
52
|
var rootProps = useGridRootProps();
|
|
51
|
-
var
|
|
52
|
-
var isSelectNative = (_baseSelectProps$nati = baseSelectProps.native) != null ? _baseSelectProps$nati : true;
|
|
53
|
-
var baseSelectOptionProps = ((_rootProps$slotProps2 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps2.baseSelectOption) || {};
|
|
53
|
+
var isSelectNative = (_rootProps$slotProps$ = (_rootProps$slotProps = rootProps.slotProps) == null ? void 0 : (_rootProps$slotProps$2 = _rootProps$slotProps.baseSelect) == null ? void 0 : _rootProps$slotProps$2.native) != null ? _rootProps$slotProps$ : true;
|
|
54
54
|
var resolvedColumn = null;
|
|
55
55
|
if (item.field) {
|
|
56
56
|
var column = apiRef.current.getColumn(item.field);
|
|
@@ -102,33 +102,37 @@ function GridFilterInputSingleSelect(props) {
|
|
|
102
102
|
if (!isSingleSelectColDef(resolvedColumn)) {
|
|
103
103
|
return null;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
105
|
+
var label = apiRef.current.getLocaleText('filterPanelInputLabel');
|
|
106
|
+
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
107
|
+
children: [/*#__PURE__*/_jsx(rootProps.slots.baseInputLabel, _extends({}, (_rootProps$slotProps2 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps2.baseInputLabel, {
|
|
108
|
+
id: labelId,
|
|
109
|
+
shrink: true,
|
|
110
|
+
variant: "standard",
|
|
111
|
+
children: label
|
|
112
|
+
})), /*#__PURE__*/_jsx(rootProps.slots.baseSelect, _extends({
|
|
113
|
+
id: id,
|
|
114
|
+
label: label,
|
|
115
|
+
labelId: labelId,
|
|
116
|
+
value: filterValueState,
|
|
117
|
+
onChange: onFilterChange,
|
|
118
|
+
variant: "standard",
|
|
119
|
+
type: type || 'text',
|
|
120
|
+
inputProps: {
|
|
121
|
+
ref: focusElementRef,
|
|
122
|
+
placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder')
|
|
123
|
+
},
|
|
120
124
|
native: isSelectNative
|
|
121
|
-
}, (_rootProps$slotProps3 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps3.baseSelect
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
})
|
|
131
|
-
})
|
|
125
|
+
}, others, (_rootProps$slotProps3 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps3.baseSelect, {
|
|
126
|
+
children: renderSingleSelectOptions({
|
|
127
|
+
column: resolvedColumn,
|
|
128
|
+
OptionComponent: rootProps.slots.baseSelectOption,
|
|
129
|
+
getOptionLabel: getOptionLabel,
|
|
130
|
+
getOptionValue: getOptionValue,
|
|
131
|
+
isSelectNative: isSelectNative,
|
|
132
|
+
baseSelectOptionProps: (_rootProps$slotProps4 = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps4.baseSelectOption
|
|
133
|
+
})
|
|
134
|
+
}))]
|
|
135
|
+
});
|
|
132
136
|
}
|
|
133
137
|
process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
|
|
134
138
|
// ----------------------------- Warning --------------------------------
|
|
@@ -12,7 +12,7 @@ import { gridExpandedSortedRowIdsSelector } from '../filter/gridFilterSelector';
|
|
|
12
12
|
import { GRID_CHECKBOX_SELECTION_COL_DEF, GRID_ACTIONS_COLUMN_TYPE } from '../../../colDef';
|
|
13
13
|
import { GridCellModes } from '../../../models/gridEditRowModel';
|
|
14
14
|
import { isKeyboardEvent, isNavigationKey } from '../../../utils/keyboardUtils';
|
|
15
|
-
import {
|
|
15
|
+
import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
|
|
16
16
|
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '../../../constants/gridDetailPanelToggleField';
|
|
17
17
|
import { gridClasses } from '../../../constants/gridClasses';
|
|
18
18
|
var getSelectionModelPropValue = function getSelectionModelPropValue(selectionModelProp, prevSelectionModel) {
|
|
@@ -63,8 +63,6 @@ export var useGridRowSelection = function useGridRowSelection(apiRef, props) {
|
|
|
63
63
|
var checkboxSelection = props.checkboxSelection,
|
|
64
64
|
disableMultipleRowSelection = props.disableMultipleRowSelection,
|
|
65
65
|
disableRowSelectionOnClick = props.disableRowSelectionOnClick,
|
|
66
|
-
pagination = props.pagination,
|
|
67
|
-
paginationMode = props.paginationMode,
|
|
68
66
|
propIsRowSelectable = props.isRowSelectable;
|
|
69
67
|
var canHaveMultipleSelection = !disableMultipleRowSelection || checkboxSelection;
|
|
70
68
|
var visibleRows = useGridVisibleRows(apiRef, props);
|
|
@@ -408,30 +406,13 @@ export var useGridRowSelection = function useGridRowSelection(apiRef, props) {
|
|
|
408
406
|
}
|
|
409
407
|
}, [apiRef, isRowSelectable, isStateControlled, props.rowSelection]);
|
|
410
408
|
React.useEffect(function () {
|
|
411
|
-
if (!props.rowSelection) {
|
|
409
|
+
if (!props.rowSelection || isStateControlled) {
|
|
412
410
|
return;
|
|
413
411
|
}
|
|
414
412
|
var currentSelection = gridRowSelectionStateSelector(apiRef.current.state);
|
|
415
413
|
if (!canHaveMultipleSelection && currentSelection.length > 1) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
paginationMode: paginationMode
|
|
419
|
-
}),
|
|
420
|
-
currentPageRows = _getVisibleRows.rows;
|
|
421
|
-
var currentPageRowsLookup = currentPageRows.reduce(function (acc, _ref4) {
|
|
422
|
-
var id = _ref4.id;
|
|
423
|
-
acc[id] = true;
|
|
424
|
-
return acc;
|
|
425
|
-
}, {});
|
|
426
|
-
var firstSelectableRow = currentSelection.find(function (id) {
|
|
427
|
-
var isSelectable = true;
|
|
428
|
-
if (isRowSelectable) {
|
|
429
|
-
isSelectable = isRowSelectable(id);
|
|
430
|
-
}
|
|
431
|
-
return isSelectable && currentPageRowsLookup[id]; // Check if the row is in the current page
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
apiRef.current.setRowSelectionModel(firstSelectableRow !== undefined ? [firstSelectableRow] : []);
|
|
414
|
+
// See https://github.com/mui/mui-x/issues/8455
|
|
415
|
+
apiRef.current.setRowSelectionModel([]);
|
|
435
416
|
}
|
|
436
|
-
}, [apiRef, canHaveMultipleSelection, checkboxSelection,
|
|
417
|
+
}, [apiRef, canHaveMultipleSelection, checkboxSelection, isStateControlled, props.rowSelection]);
|
|
437
418
|
};
|
package/legacy/index.js
CHANGED
package/legacy/locales/frFR.js
CHANGED
|
@@ -123,15 +123,13 @@ var frFRGrid = {
|
|
|
123
123
|
expandDetailPanel: 'Afficher',
|
|
124
124
|
collapseDetailPanel: 'Masquer',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: 'Positionnement des lignes'
|
|
127
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Positionnement des lignes',
|
|
128
127
|
// Aggregation
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Agrégation',
|
|
129
|
+
aggregationFunctionLabelSum: 'Somme',
|
|
130
|
+
aggregationFunctionLabelAvg: 'Moyenne',
|
|
131
|
+
aggregationFunctionLabelMin: 'Minimum',
|
|
132
|
+
aggregationFunctionLabelMax: 'Maximum',
|
|
133
|
+
aggregationFunctionLabelSize: "Nombre d'éléments"
|
|
135
134
|
};
|
|
136
|
-
|
|
137
135
|
export var frFR = getGridLocalization(frFRGrid, frFRCore);
|
package/legacy/locales/urPK.js
CHANGED
|
@@ -125,11 +125,11 @@ var urPKGrid = {
|
|
|
125
125
|
// Row reordering text
|
|
126
126
|
rowReorderingHeaderName: 'قطاروں کی ترتیب تبدیل کریں',
|
|
127
127
|
// Aggregation
|
|
128
|
-
aggregationMenuItemHeader: '
|
|
129
|
-
aggregationFunctionLabelSum: '
|
|
130
|
-
aggregationFunctionLabelAvg: '
|
|
131
|
-
aggregationFunctionLabelMin: '
|
|
132
|
-
aggregationFunctionLabelMax: '
|
|
133
|
-
aggregationFunctionLabelSize: '
|
|
128
|
+
aggregationMenuItemHeader: 'ایگریگیشن',
|
|
129
|
+
aggregationFunctionLabelSum: 'کل',
|
|
130
|
+
aggregationFunctionLabelAvg: 'اوسط',
|
|
131
|
+
aggregationFunctionLabelMin: 'کم از کم',
|
|
132
|
+
aggregationFunctionLabelMax: 'زیادہ سے زیادہ',
|
|
133
|
+
aggregationFunctionLabelSize: 'سائز'
|
|
134
134
|
};
|
|
135
135
|
export var urPK = getGridLocalization(urPKGrid, urPKCore);
|
package/legacy/utils/utils.js
CHANGED
package/locales/frFR.js
CHANGED
|
@@ -111,15 +111,13 @@ const frFRGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Afficher',
|
|
112
112
|
collapseDetailPanel: 'Masquer',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: 'Positionnement des lignes'
|
|
115
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Positionnement des lignes',
|
|
116
115
|
// Aggregation
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'Agrégation',
|
|
117
|
+
aggregationFunctionLabelSum: 'Somme',
|
|
118
|
+
aggregationFunctionLabelAvg: 'Moyenne',
|
|
119
|
+
aggregationFunctionLabelMin: 'Minimum',
|
|
120
|
+
aggregationFunctionLabelMax: 'Maximum',
|
|
121
|
+
aggregationFunctionLabelSize: "Nombre d'éléments"
|
|
123
122
|
};
|
|
124
|
-
|
|
125
123
|
export const frFR = getGridLocalization(frFRGrid, frFRCore);
|
package/locales/urPK.js
CHANGED
|
@@ -113,11 +113,11 @@ const urPKGrid = {
|
|
|
113
113
|
// Row reordering text
|
|
114
114
|
rowReorderingHeaderName: 'قطاروں کی ترتیب تبدیل کریں',
|
|
115
115
|
// Aggregation
|
|
116
|
-
aggregationMenuItemHeader: '
|
|
117
|
-
aggregationFunctionLabelSum: '
|
|
118
|
-
aggregationFunctionLabelAvg: '
|
|
119
|
-
aggregationFunctionLabelMin: '
|
|
120
|
-
aggregationFunctionLabelMax: '
|
|
121
|
-
aggregationFunctionLabelSize: '
|
|
116
|
+
aggregationMenuItemHeader: 'ایگریگیشن',
|
|
117
|
+
aggregationFunctionLabelSum: 'کل',
|
|
118
|
+
aggregationFunctionLabelAvg: 'اوسط',
|
|
119
|
+
aggregationFunctionLabelMin: 'کم از کم',
|
|
120
|
+
aggregationFunctionLabelMax: 'زیادہ سے زیادہ',
|
|
121
|
+
aggregationFunctionLabelSize: 'سائز'
|
|
122
122
|
};
|
|
123
123
|
export const urPK = getGridLocalization(urPKGrid, urPKCore);
|