@bryntum/grid-react-thin 7.3.4 → 7.3.6

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.
Files changed (45) hide show
  1. package/README.md +6 -5
  2. package/lib/BryntumAIFilterField.d.ts +2 -1
  3. package/lib/BryntumAIFilterField.js +1 -0
  4. package/lib/BryntumAIFilterField.js.map +1 -1
  5. package/lib/BryntumChecklistFilterCombo.d.ts +2 -1
  6. package/lib/BryntumChecklistFilterCombo.js +1 -0
  7. package/lib/BryntumChecklistFilterCombo.js.map +1 -1
  8. package/lib/BryntumGrid.d.ts +14 -2
  9. package/lib/BryntumGrid.js +5 -1
  10. package/lib/BryntumGrid.js.map +1 -1
  11. package/lib/BryntumGridBase.d.ts +14 -2
  12. package/lib/BryntumGridBase.js +5 -1
  13. package/lib/BryntumGridBase.js.map +1 -1
  14. package/lib/BryntumGridChartDesigner.d.ts +2 -1
  15. package/lib/BryntumGridChartDesigner.js +1 -0
  16. package/lib/BryntumGridChartDesigner.js.map +1 -1
  17. package/lib/BryntumGridFieldFilterPicker.d.ts +2 -1
  18. package/lib/BryntumGridFieldFilterPicker.js +2 -1
  19. package/lib/BryntumGridFieldFilterPicker.js.map +1 -1
  20. package/lib/BryntumGridFieldFilterPickerGroup.d.ts +2 -1
  21. package/lib/BryntumGridFieldFilterPickerGroup.js +2 -1
  22. package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -1
  23. package/lib/BryntumGroupBar.d.ts +2 -1
  24. package/lib/BryntumGroupBar.js +1 -0
  25. package/lib/BryntumGroupBar.js.map +1 -1
  26. package/lib/BryntumTreeCombo.d.ts +2 -1
  27. package/lib/BryntumTreeCombo.js +1 -0
  28. package/lib/BryntumTreeCombo.js.map +1 -1
  29. package/lib/BryntumTreeGrid.d.ts +14 -2
  30. package/lib/BryntumTreeGrid.js +5 -1
  31. package/lib/BryntumTreeGrid.js.map +1 -1
  32. package/lib/WrapperHelper.js +2 -2
  33. package/lib/WrapperHelper.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/BryntumAIFilterField.tsx +8 -1
  36. package/src/BryntumChecklistFilterCombo.tsx +9 -2
  37. package/src/BryntumGrid.tsx +30 -3
  38. package/src/BryntumGridBase.tsx +30 -3
  39. package/src/BryntumGridChartDesigner.tsx +8 -1
  40. package/src/BryntumGridFieldFilterPicker.tsx +10 -3
  41. package/src/BryntumGridFieldFilterPickerGroup.tsx +10 -3
  42. package/src/BryntumGroupBar.tsx +8 -1
  43. package/src/BryntumTreeCombo.tsx +8 -1
  44. package/src/BryntumTreeGrid.tsx +30 -3
  45. package/src/WrapperHelper.tsx +1 -1
@@ -3,7 +3,7 @@
3
3
  */
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
5
  import React, { RefObject } from 'react';
6
- import { AlignSpec, Base, Collection, CollectionConfig, Color, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, ReactJSX, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
6
+ import { AlignSpec, Base, Collection, CollectionConfig, Color, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, OverflowTwinConfig, ReactJSX, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
7
7
  import { GroupBar, GroupBarListeners } from '@bryntum/grid-thin';
8
8
 
9
9
  import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
@@ -391,6 +391,12 @@ export type BryntumGroupBarProps = {
391
391
  * Configure as `true` to allow multi select and allow clicking and key navigation to select multiple chips.
392
392
  */
393
393
  multiSelect? : boolean
394
+ /**
395
+ * Customizes the config object used to create this widget's clone in a [Toolbar](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar)'s
396
+ * overflow menu (see [overflow](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar#config-overflow)).
397
+ * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#config-overflowTwinConfig)
398
+ */
399
+ overflowTwinConfig? : OverflowTwinConfig|null
394
400
  /**
395
401
  * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement), but must
396
402
  * not participate in the standard layout of that widget, and must be positioned relatively to that
@@ -749,6 +755,7 @@ export class BryntumGroupBar extends React.Component<BryntumGroupBarProps> {
749
755
  'maskDefaults',
750
756
  'masked',
751
757
  'monitorResize',
758
+ 'overflowTwinConfig',
752
759
  'positioned',
753
760
  'preventTooltipOnTouch',
754
761
  'relayStoreEvents',
@@ -3,7 +3,7 @@
3
3
  */
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
5
  import React, { RefObject } from 'react';
6
- import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Color, Combo, DomConfig, Duration, DurationConfig, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, ReactJSX, Rectangle, Scroller, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
6
+ import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Color, Combo, DomConfig, Duration, DurationConfig, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, OverflowTwinConfig, ReactJSX, Rectangle, Scroller, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
7
7
  import { GridContainerItemConfig, TreeCombo, TreeComboListeners } from '@bryntum/grid-thin';
8
8
 
9
9
  import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
@@ -577,6 +577,12 @@ export type BryntumTreeComboProps = {
577
577
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-name)
578
578
  */
579
579
  name? : string
580
+ /**
581
+ * Customizes the config object used to create this widget's clone in a [Toolbar](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar)'s
582
+ * overflow menu (see [overflow](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar#config-overflow)).
583
+ * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-overflowTwinConfig)
584
+ */
585
+ overflowTwinConfig? : OverflowTwinConfig|null
580
586
  /**
581
587
  * This implies that the picker will display an anchor pointer, but also means that the picker will align closer
582
588
  * to the input field so that the pointer pierces the [pickerAlignElement](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-pickerAlignElement)
@@ -1039,6 +1045,7 @@ export class BryntumTreeCombo extends React.Component<BryntumTreeComboProps> {
1039
1045
  'monitorResize',
1040
1046
  'multiValueSeparator',
1041
1047
  'name',
1048
+ 'overflowTwinConfig',
1042
1049
  'overlayAnchor',
1043
1050
  'pickerAlignElement',
1044
1051
  'pickerWidth',
@@ -3,7 +3,7 @@
3
3
  */
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
5
  import React, { RefObject } from 'react';
6
- import { AjaxStore, AjaxStoreConfig, Base, Color, Container, DomConfig, FormulaProviderConfig, InstancePlugin, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Widget } from '@bryntum/core-thin';
6
+ import { AjaxStore, AjaxStoreConfig, Base, Color, Container, DomConfig, FormulaProviderConfig, InstancePlugin, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, ModelConfig, OverflowTwinConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Widget } from '@bryntum/core-thin';
7
7
  import { AI, AIConfig, AIFilter, AIFilterConfig, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, GridContainerItemConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, Grid, GridBase, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, LockRows, LockRowsConfig, MergeCells, MergeCellsConfig, PdfExport, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, Print, PrintConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StickyCells, StickyCellsConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, Tree, TreeConfig, TreeGrid, TreeGridListeners, TreeGroup, TreeGroupConfig, XLSColumn } from '@bryntum/grid-thin';
8
8
 
9
9
  import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
@@ -451,6 +451,12 @@ export type BryntumTreeGridProps = {
451
451
  * Grid monitors window resize by default.
452
452
  */
453
453
  monitorResize? : boolean
454
+ /**
455
+ * Customizes the config object used to create this widget's clone in a [Toolbar](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar)'s
456
+ * overflow menu (see [overflow](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar#config-overflow)).
457
+ * [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-overflowTwinConfig)
458
+ */
459
+ overflowTwinConfig? : OverflowTwinConfig|null
454
460
  /**
455
461
  * Specify plugins (an array of classes) in config
456
462
  */
@@ -601,7 +607,7 @@ export type BryntumTreeGridProps = {
601
607
  * (if explicitly specified) will be used as the `stateId`.
602
608
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-stateId)
603
609
  */
604
- stateId? : string
610
+ stateId? : string|null
605
611
  /**
606
612
  * The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/grid/docs/api/Core/mixin/State#property-state). By default, `state`
607
613
  * will be saved using the [default state provider](https://bryntum.com/products/grid/docs/api/Core/state/StateProvider#property-instance-static).
@@ -1444,6 +1450,23 @@ export type BryntumTreeGridProps = {
1444
1450
  * @param {Core.widget.Widget} event.source The widget
1445
1451
  */
1446
1452
  onHide? : ((event: { source: Widget }) => void)|string
1453
+ /**
1454
+ * Fires when the Grid is scrolling horizontally in one of its SubGrids.
1455
+ * @param {object} event Event object
1456
+ * @param {Grid.view.GridBase} event.source The firing Grid instance
1457
+ * @param {Grid.view.SubGrid} event.subGrid The scrolling SubGrid instance
1458
+ * @param {number} event.scrollLeft The horizontal scroll position
1459
+ * @param {number} event.scrollX The horizontal scroll position in the RTL-safe coordinate system
1460
+ */
1461
+ onHorizontalScroll? : ((event: { source: GridBase, subGrid: SubGrid, scrollLeft: number, scrollX: number }) => void)|string
1462
+ /**
1463
+ * Fires after the Grid is done scrolling horizontally in one of its SubGrids.
1464
+ * @param {object} event Event object
1465
+ * @param {Grid.view.GridBase} event.source The firing Grid instance
1466
+ * @param {Grid.view.SubGrid} event.subGrid The scrolling SubGrid instance
1467
+ * @param {number} [event.scrollLeft] The horizontal scroll position. Only supplied when the event follows a SubGrid resize, the scroll driven path does not report a position
1468
+ */
1469
+ onHorizontalScrollEnd? : ((event: { source: GridBase, subGrid: SubGrid, scrollLeft?: number }) => void)|string
1447
1470
  /**
1448
1471
  * Fires when row locking is enabled.
1449
1472
  * @param {object} event Event object
@@ -2098,6 +2121,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
2098
2121
  'maskDefaults',
2099
2122
  'masked',
2100
2123
  'monitorResize',
2124
+ 'overflowTwinConfig',
2101
2125
  'plugins',
2102
2126
  'preserveFocusOnDatasetChange',
2103
2127
  'preserveScrollOnDatasetChange',
@@ -2114,7 +2138,6 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
2114
2138
  'showDirty',
2115
2139
  'stateful',
2116
2140
  'statefulEvents',
2117
- 'stateId',
2118
2141
  'stateProvider',
2119
2142
  'strips',
2120
2143
  'subGridConfigs',
@@ -2247,6 +2270,8 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
2247
2270
  'onHeaderMenuShow',
2248
2271
  'onHeaderMenuToggleItem',
2249
2272
  'onHide',
2273
+ 'onHorizontalScroll',
2274
+ 'onHorizontalScrollEnd',
2250
2275
  'onLockRows',
2251
2276
  'onMouseOut',
2252
2277
  'onMouseOver',
@@ -2291,6 +2316,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
2291
2316
  'scrollable',
2292
2317
  'selectionMode',
2293
2318
  'span',
2319
+ 'stateId',
2294
2320
  'stateSettings',
2295
2321
  'store',
2296
2322
  'title',
@@ -2301,6 +2327,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
2301
2327
  ];
2302
2328
 
2303
2329
  static propertyNames = [
2330
+ 'autoUpdateRecord',
2304
2331
  'centered',
2305
2332
  'originalStore',
2306
2333
  'parent',
@@ -803,7 +803,7 @@ function processCalendarEventContent(this: any, {
803
803
  refHolder = targetElement.closest('[data-ref]') as HTMLElement,
804
804
  mode = typeof this.mode === 'string' ? this.mode : this.mode?.type?.slice(0, 4),
805
805
  lastPortalId = wrap?.dataset.lastPortalId,
806
- portalKey = domConfig.dataset?.date || (dataHolder)?.dataset.date,
806
+ portalKey = domConfig?.dataset?.date || dataHolder?.dataset.date,
807
807
  containerRef = refHolder?.dataset?.ref;
808
808
 
809
809
  reactComponent.syncContent = reactComponent.syncContent || function(fn: () => unknown) {