@refinitiv-ui/efx-grid 6.0.4 → 6.0.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.
- package/lib/column-dragging/es6/ColumnDragging.d.ts +13 -11
- package/lib/column-dragging/es6/ColumnDragging.js +21 -15
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +1 -1
- package/lib/column-format-dialog/lib/column-format-dialog.js +3 -4
- package/lib/column-format-dialog/lib/preview-table.js +3 -4
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +2 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +23 -7
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +392 -230
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/ColumnStats.d.ts +3 -3
- package/lib/core/es6/data/DataCache.d.ts +9 -9
- package/lib/core/es6/data/DataTable.d.ts +28 -28
- package/lib/core/es6/data/DataTable.js +33 -10
- package/lib/core/es6/data/DataView.d.ts +62 -62
- package/lib/core/es6/data/DataView.js +42 -22
- package/lib/core/es6/data/Segment.d.ts +4 -4
- package/lib/core/es6/data/SegmentCollection.d.ts +7 -7
- package/lib/core/es6/data/WrappedView.d.ts +62 -62
- package/lib/core/es6/grid/Core.d.ts +97 -95
- package/lib/core/es6/grid/Core.js +180 -26
- package/lib/core/es6/grid/ILayoutGrid.d.ts +20 -20
- package/lib/core/es6/grid/ILayoutGrid.js +2 -1
- package/lib/core/es6/grid/LayoutGrid.d.ts +2 -2
- package/lib/core/es6/grid/LayoutGrid.js +18 -10
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +2 -2
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +14 -3
- package/lib/core/es6/grid/components/Cell.d.ts +6 -6
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +2 -2
- package/lib/core/es6/grid/components/CellSpans.d.ts +2 -2
- package/lib/core/es6/grid/components/Column.d.ts +2 -2
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +19 -19
- package/lib/core/es6/grid/components/Scrollbar.d.ts +11 -9
- package/lib/core/es6/grid/components/Scrollbar.js +13 -0
- package/lib/core/es6/grid/components/StretchedCells.js +12 -2
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +3 -3
- package/lib/core/es6/grid/event/EventListeners.d.ts +5 -5
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +45 -44
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +62 -65
- package/lib/core/es6/grid/util/Conflator.d.ts +4 -4
- package/lib/core/es6/grid/util/HttpRequest.d.ts +3 -3
- package/lib/core/es6/grid/util/PercentBar.d.ts +8 -8
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +8 -8
- package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
- package/lib/core/es6/grid/util/RangeBar.js +1 -1
- package/lib/core/es6/grid/util/Reverter.d.ts +1 -1
- package/lib/core/es6/grid/util/SectionSettings.d.ts +13 -13
- package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
- package/lib/core/es6/grid/util/TrackLayout.d.ts +9 -9
- package/lib/core/es6/grid/util/Virtualizer.d.ts +3 -3
- package/lib/core/es6/grid/util/util.d.ts +6 -4
- package/lib/core/es6/grid/util/util.js +16 -91
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/filter-dialog/lib/checkbox-list.d.ts +1 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -1
- package/lib/filter-dialog/lib/filter-dialog.js +27 -9
- package/lib/filter-dialog/themes/base-checkbox.less +0 -1
- package/lib/filter-dialog/themes/base.less +1 -1
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/lib/efx-grid.js +7 -44
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/efx-grid.less +5 -5
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +30 -24
- package/lib/row-segmenting/es6/RowSegmenting.js +122 -21
- package/lib/rt-grid/dist/rt-grid.js +1354 -435
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +46 -42
- package/lib/rt-grid/es6/ColumnDefinition.js +31 -1
- package/lib/rt-grid/es6/DataConnector.d.ts +6 -4
- package/lib/rt-grid/es6/DataConnector.js +8 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +2 -2
- package/lib/rt-grid/es6/FieldDefinition.js +12 -5
- package/lib/rt-grid/es6/Grid.d.ts +106 -91
- package/lib/rt-grid/es6/Grid.js +151 -106
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +5 -5
- package/lib/rt-grid/es6/RowDefSorter.d.ts +2 -2
- package/lib/rt-grid/es6/RowDefinition.d.ts +22 -22
- package/lib/rt-grid/es6/RowDefinition.js +12 -5
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +5 -2
- package/lib/rt-grid/es6/SnapshotFiller.js +121 -15
- package/lib/rt-grid/es6/StyleLoader.d.ts +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +11 -11
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +20 -35
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +18 -16
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +29 -27
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +28 -14
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +556 -11
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +2 -2
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +2 -3
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +15 -13
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +96 -72
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +14 -4
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +314 -114
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +1 -6
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +3 -3
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +2 -2
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +2 -2
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +2 -1
- package/lib/tr-grid-heat-map/es6/HeatMap.js +6 -9
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +5 -2
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +311 -71
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +1 -1
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +8 -11
- package/lib/tr-grid-printer/es6/SectionWriter.js +8 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +3 -10
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +6 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +56 -23
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +4 -3
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +57 -13
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1 -1
- package/lib/tr-grid-row-selection/es6/RowSelection.js +16 -13
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +0 -2
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +1 -40
- package/lib/tr-grid-util/es6/CellPainter.d.ts +30 -30
- package/lib/tr-grid-util/es6/CellPainter.js +9 -8
- package/lib/tr-grid-util/es6/Conflator.d.ts +4 -4
- package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
- package/lib/tr-grid-util/es6/DateTime.d.ts +10 -10
- package/lib/tr-grid-util/es6/Deferred.d.ts +3 -1
- package/lib/tr-grid-util/es6/Deferred.js +11 -1
- package/lib/tr-grid-util/es6/Delay.d.ts +2 -2
- package/lib/tr-grid-util/es6/Dom.d.ts +10 -10
- package/lib/tr-grid-util/es6/Dom.js +14 -10
- package/lib/tr-grid-util/es6/DragUI.js +5 -2
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -2
- package/lib/tr-grid-util/es6/ElementObserver.js +6 -3
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +4 -4
- package/lib/tr-grid-util/es6/ElfDate.d.ts +5 -5
- package/lib/tr-grid-util/es6/ElfDate.js +1 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +13 -4
- package/lib/tr-grid-util/es6/ElfUtil.js +178 -26
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +5 -5
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +2 -2
- package/lib/tr-grid-util/es6/ExpanderIcon.js +1 -1
- package/lib/tr-grid-util/es6/Ext.d.ts +1 -1
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +12 -12
- package/lib/tr-grid-util/es6/FieldFormatter.js +1 -1
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +13 -13
- package/lib/tr-grid-util/es6/FilterBuilder.js +15 -8
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +22 -22
- package/lib/tr-grid-util/es6/FilterOperators.js +3 -3
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +10 -10
- package/lib/tr-grid-util/es6/GridPlugin.js +20 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +3 -3
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +8 -8
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +6 -6
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +19 -19
- package/lib/tr-grid-util/es6/NumberFormatter.js +1 -1
- package/lib/tr-grid-util/es6/PercentBar.d.ts +19 -19
- package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
- package/lib/tr-grid-util/es6/Popup.d.ts +36 -33
- package/lib/tr-grid-util/es6/Popup.js +19 -1
- package/lib/tr-grid-util/es6/RangeBar.d.ts +5 -5
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +4 -4
- package/lib/tr-grid-util/es6/RowPainter.d.ts +37 -4
- package/lib/tr-grid-util/es6/RowPainter.js +199 -76
- package/lib/tr-grid-util/es6/SubTable.d.ts +14 -14
- package/lib/tr-grid-util/es6/Table.d.ts +25 -25
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +1 -1
- package/lib/tr-grid-util/es6/Timer.d.ts +1 -1
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +9 -9
- package/lib/tr-grid-util/es6/Util.d.ts +12 -12
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +9 -9
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +4 -4
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +3 -3
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +34 -34
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
- package/lib/tr-grid-util/es6/jet/MockJET.js +12 -4
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +9 -9
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +17 -9
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +84 -24
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +42 -2
- package/lib/tr-grid-util/es6/jet/MockRTK.js +55 -16
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +2 -2
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +99 -1
- package/lib/types/es6/Checkbox.d.ts +18 -16
- package/lib/types/es6/ColumnFormatting.d.ts +29 -27
- package/lib/types/es6/ColumnGrouping.d.ts +28 -14
- package/lib/types/es6/ColumnResizing.d.ts +2 -2
- package/lib/types/es6/ColumnStack.d.ts +15 -13
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +4 -2
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +0 -1
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +1 -1
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +1 -1
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +1 -5
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +3 -1
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +1 -1
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +0 -1
- package/lib/types/es6/ConditionalColoring.d.ts +14 -4
- package/lib/types/es6/Core/data/ColumnStats.d.ts +3 -3
- package/lib/types/es6/Core/data/DataCache.d.ts +9 -9
- package/lib/types/es6/Core/data/DataTable.d.ts +28 -28
- package/lib/types/es6/Core/data/DataView.d.ts +62 -62
- package/lib/types/es6/Core/data/Segment.d.ts +4 -4
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +7 -7
- package/lib/types/es6/Core/data/WrappedView.d.ts +62 -62
- package/lib/types/es6/Core/grid/Core.d.ts +97 -95
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +20 -20
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +2 -2
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/Cell.d.ts +6 -6
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/Column.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +19 -19
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +11 -9
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +3 -3
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +5 -5
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +45 -44
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +4 -4
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +3 -3
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +8 -8
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +8 -8
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +13 -13
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +9 -9
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +3 -3
- package/lib/types/es6/Core/grid/util/util.d.ts +6 -4
- package/lib/types/es6/HeatMap.d.ts +2 -1
- package/lib/types/es6/InCellEditing.d.ts +5 -2
- package/lib/types/es6/MenuEventAPI.d.ts +2 -2
- package/lib/types/es6/MenuItem.d.ts +2 -2
- package/lib/types/es6/PercentBar.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +46 -42
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +6 -4
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +2 -2
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +104 -89
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +5 -5
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +2 -2
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +22 -22
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +5 -2
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +1 -1
- package/lib/types/es6/RowColoring.d.ts +0 -2
- package/lib/types/es6/RowDragging.d.ts +6 -0
- package/lib/types/es6/RowFiltering.d.ts +4 -3
- package/lib/types/es6/RowSegmenting.d.ts +30 -24
- package/lib/versions.json +26 -26
- package/package.json +2 -2
|
@@ -8,20 +8,20 @@ import { DragUI } from "../../tr-grid-util/es6/DragUI.js";
|
|
|
8
8
|
declare namespace ColumnDraggingPlugin {
|
|
9
9
|
|
|
10
10
|
type Options = {
|
|
11
|
-
dragStart?: ((...params: any[]) => any),
|
|
12
|
-
drag?: ((...params: any[]) => any),
|
|
13
|
-
dragEnd?: ((...params: any[]) => any),
|
|
14
|
-
preColumnMoved?: ((...params: any[]) => any),
|
|
15
|
-
columnMoved?: ((...params: any[]) => any),
|
|
16
|
-
dragInterval?: ((...params: any[]) => any),
|
|
17
|
-
dragBoxRenderer?: ((...params: any[]) => any)
|
|
11
|
+
dragStart?: ((...params: any[]) => any)|null,
|
|
12
|
+
drag?: ((...params: any[]) => any)|null,
|
|
13
|
+
dragEnd?: ((...params: any[]) => any)|null,
|
|
14
|
+
preColumnMoved?: ((...params: any[]) => any)|null,
|
|
15
|
+
columnMoved?: ((...params: any[]) => any)|null,
|
|
16
|
+
dragInterval?: ((...params: any[]) => any)|null,
|
|
17
|
+
dragBoxRenderer?: ((...params: any[]) => any)|null
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
declare class ColumnDraggingPlugin extends GridPlugin {
|
|
23
23
|
|
|
24
|
-
constructor(options?: ColumnDraggingPlugin.Options);
|
|
24
|
+
constructor(options?: ColumnDraggingPlugin.Options|null);
|
|
25
25
|
|
|
26
26
|
public getName(): string;
|
|
27
27
|
|
|
@@ -37,11 +37,13 @@ declare class ColumnDraggingPlugin extends GridPlugin {
|
|
|
37
37
|
|
|
38
38
|
public lockFrozenColumn(lock: boolean): void;
|
|
39
39
|
|
|
40
|
-
public disable(
|
|
40
|
+
public disable(disabled?: boolean|null): void;
|
|
41
41
|
|
|
42
|
-
public
|
|
42
|
+
public isDisabled(): boolean;
|
|
43
43
|
|
|
44
|
-
public
|
|
44
|
+
public disableMoving(disabled?: boolean|null): void;
|
|
45
|
+
|
|
46
|
+
public disableDragBox(disabled?: boolean|null): void;
|
|
45
47
|
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -226,7 +226,7 @@ ColumnDraggingPlugin.prototype.initialize = function (host, options) {
|
|
|
226
226
|
DragUI.applyThemeColor(host);
|
|
227
227
|
} else {
|
|
228
228
|
DragUI.stylePromise = ElfUtil.getThemeColors();
|
|
229
|
-
DragUI.stylePromise.then(this._onThemeLoaded);
|
|
229
|
+
DragUI.stylePromise.then(this._onThemeLoaded).catch(this._onThemeLoaded);
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
/** @public
|
|
@@ -252,9 +252,9 @@ ColumnDraggingPlugin.prototype.unload = function (host) {
|
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
/** @private
|
|
255
|
-
* @param {Object} colors
|
|
256
255
|
*/
|
|
257
|
-
ColumnDraggingPlugin.prototype._onThemeLoaded = function(
|
|
256
|
+
ColumnDraggingPlugin.prototype._onThemeLoaded = function() {
|
|
257
|
+
var colors = ElfUtil.getColors();
|
|
258
258
|
this._dragUI.onThemeLoaded(colors); // TODO : onThemeLoaded should be static function like DragUI.applyThemeColor
|
|
259
259
|
for(var i = this._hosts.length; --i >= 0;) {
|
|
260
260
|
DragUI.applyThemeColor(this._hosts[i]);
|
|
@@ -320,24 +320,30 @@ ColumnDraggingPlugin.prototype.lockFrozenColumn = function(lock) {
|
|
|
320
320
|
|
|
321
321
|
/** Disable this plugin entirely
|
|
322
322
|
* @public
|
|
323
|
-
* @param {boolean=}
|
|
323
|
+
* @param {boolean=} disabled
|
|
324
324
|
*/
|
|
325
|
-
ColumnDraggingPlugin.prototype.disable = function(
|
|
326
|
-
this._disabled =
|
|
325
|
+
ColumnDraggingPlugin.prototype.disable = function(disabled) {
|
|
326
|
+
this._disabled = disabled !== false;
|
|
327
|
+
};
|
|
328
|
+
/** @public
|
|
329
|
+
* @return {boolean}
|
|
330
|
+
*/
|
|
331
|
+
ColumnDraggingPlugin.prototype.isDisabled = function() {
|
|
332
|
+
return this._disabled;
|
|
327
333
|
};
|
|
328
334
|
/** Disable column moving. Only cursor is showing and events are fired. No real column moving.
|
|
329
335
|
* @public
|
|
330
|
-
* @param {boolean=}
|
|
336
|
+
* @param {boolean=} disabled
|
|
331
337
|
*/
|
|
332
|
-
ColumnDraggingPlugin.prototype.disableMoving = function(
|
|
333
|
-
this._noColumnMoving =
|
|
338
|
+
ColumnDraggingPlugin.prototype.disableMoving = function(disabled) {
|
|
339
|
+
this._noColumnMoving = disabled !== false;
|
|
334
340
|
};
|
|
335
341
|
/** Disable column moving. Only cursor is showing and events are fired. No real column moving.
|
|
336
342
|
* @public
|
|
337
|
-
* @param {boolean=}
|
|
343
|
+
* @param {boolean=} disabled
|
|
338
344
|
*/
|
|
339
|
-
ColumnDraggingPlugin.prototype.disableDragBox = function(
|
|
340
|
-
this._noDragBox =
|
|
345
|
+
ColumnDraggingPlugin.prototype.disableDragBox = function(disabled) {
|
|
346
|
+
this._noDragBox = disabled !== false;
|
|
341
347
|
};
|
|
342
348
|
|
|
343
349
|
/** @private
|
|
@@ -384,7 +390,7 @@ ColumnDraggingPlugin.prototype._onMouseDown = function (e) {
|
|
|
384
390
|
return; // Only start dragging when mouse is down on the grid
|
|
385
391
|
}
|
|
386
392
|
|
|
387
|
-
var section =
|
|
393
|
+
var section = this._pos["section"];
|
|
388
394
|
if(!section) {
|
|
389
395
|
return; // The section that is not in the target section list cannot be dragged
|
|
390
396
|
} else if(this._pos["sectionType"] !== "title") {
|
|
@@ -433,7 +439,7 @@ ColumnDraggingPlugin.prototype._onMouseUp = function (e) {
|
|
|
433
439
|
ColumnDraggingPlugin.prototype._onDragStart = function (e) {
|
|
434
440
|
if(this._disabled || this._isDragging) { return; }
|
|
435
441
|
if (this.hasListener("dragStart")) {
|
|
436
|
-
this._dispatch("dragStart",
|
|
442
|
+
this._dispatch("dragStart", this._pos);
|
|
437
443
|
}
|
|
438
444
|
|
|
439
445
|
if (this._pos["cancel"]) {
|
|
@@ -644,7 +650,7 @@ ColumnDraggingPlugin.prototype._onDragEnd = function (e) {
|
|
|
644
650
|
ColumnDraggingPlugin.prototype._onDragPulse = function() {
|
|
645
651
|
if(!this._isDragging || !this._pos) { return; }
|
|
646
652
|
|
|
647
|
-
this._dispatch("dragInterval",
|
|
653
|
+
this._dispatch("dragInterval", this._pos);
|
|
648
654
|
|
|
649
655
|
var host = this._clickedGrid;
|
|
650
656
|
if(!host || !host.getHScrollbar().isActive()) { return; }
|
|
@@ -164,7 +164,7 @@ class ColumnFormatDialog extends BasicElement {
|
|
|
164
164
|
};
|
|
165
165
|
this._atLeastOneBidOffer = false;
|
|
166
166
|
|
|
167
|
-
ElfUtil.getThemeColors().then(this._onThemeLoaded);
|
|
167
|
+
ElfUtil.getThemeColors().then(this._onThemeLoaded).catch(this._onThemeLoaded);
|
|
168
168
|
ElementObserver.addLanguageListener(this);
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -660,10 +660,9 @@ class ColumnFormatDialog extends BasicElement {
|
|
|
660
660
|
|
|
661
661
|
/**
|
|
662
662
|
* @private
|
|
663
|
-
* @param {Object} colors
|
|
664
663
|
*/
|
|
665
|
-
_onThemeLoaded(
|
|
666
|
-
this._colors =
|
|
664
|
+
_onThemeLoaded() {
|
|
665
|
+
this._colors = ElfUtil.getColors();
|
|
667
666
|
}
|
|
668
667
|
|
|
669
668
|
/**
|
|
@@ -175,7 +175,7 @@ var PreviewTable = function (elem) {
|
|
|
175
175
|
|
|
176
176
|
this._numberFormatter = new NumberFormatter();
|
|
177
177
|
|
|
178
|
-
ElfUtil.getThemeColors().then(this._onThemeLoaded);
|
|
178
|
+
ElfUtil.getThemeColors().then(this._onThemeLoaded).catch(this._onThemeLoaded);
|
|
179
179
|
setInterval(this._onIntervalUpdate, 1500);
|
|
180
180
|
|
|
181
181
|
this._formatSampleValue();
|
|
@@ -985,10 +985,9 @@ PreviewTable.prototype._updateValueFormatExample = function (val) {
|
|
|
985
985
|
|
|
986
986
|
/**
|
|
987
987
|
* @private
|
|
988
|
-
* @param {Object} colors
|
|
989
988
|
*/
|
|
990
|
-
PreviewTable.prototype._onThemeLoaded = function (
|
|
991
|
-
this._configUpdateStyleValue.colors =
|
|
989
|
+
PreviewTable.prototype._onThemeLoaded = function () {
|
|
990
|
+
this._configUpdateStyleValue.colors = ElfUtil.getColors();
|
|
992
991
|
};
|
|
993
992
|
|
|
994
993
|
export default PreviewTable;
|
|
@@ -2,7 +2,7 @@ import { customElement } from "@refinitiv-ui/core/decorators/custom-element.js";
|
|
|
2
2
|
import { JSXInterface } from "../../tr-grid-util/es6/jsx";
|
|
3
3
|
import { BasicElement, html } from "@refinitiv-ui/core";
|
|
4
4
|
import "@refinitiv-ui/elements/button";
|
|
5
|
-
import { DefaultRenderer } from "@refinitiv-ui/elements/tree";
|
|
5
|
+
import { TreeRenderer as DefaultRenderer } from "@refinitiv-ui/elements/tree";
|
|
6
6
|
import "@refinitiv-ui/elements/dialog";
|
|
7
7
|
import "@refinitiv-ui/elements/search-field";
|
|
8
8
|
import translation from "./locale/translation.js";
|
|
@@ -45,7 +45,7 @@ declare global {
|
|
|
45
45
|
}
|
|
46
46
|
namespace JSX {
|
|
47
47
|
interface IntrinsicElements {
|
|
48
|
-
"column-selection-dialog": ColumnSelectionDialog
|
|
48
|
+
"column-selection-dialog": ColumnSelectionDialog & JSXInterface.HTMLAttributes;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { customElement } from "@refinitiv-ui/core/decorators/custom-element.js";
|
|
2
2
|
import { BasicElement, html } from "@refinitiv-ui/core";
|
|
3
3
|
import "@refinitiv-ui/elements/button";
|
|
4
|
-
import { DefaultRenderer } from "@refinitiv-ui/elements/tree";
|
|
4
|
+
import { TreeRenderer as DefaultRenderer } from "@refinitiv-ui/elements/tree";
|
|
5
5
|
import "@refinitiv-ui/elements/dialog";
|
|
6
6
|
import "@refinitiv-ui/elements/search-field";
|
|
7
7
|
import translation from "./locale/translation.js";
|
|
@@ -19,7 +19,7 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
|
19
19
|
* @property {number=} excludedColumns Deprecated, Alias wigh excludedLeftColumns.
|
|
20
20
|
* @property {number=} excludedLeftColumns Number of columns on the left side that should be hidden from Visible Columns.
|
|
21
21
|
* @property {number=} excludedRightColumns Number of columns on the right side that should be hidden from Visible Columns.
|
|
22
|
-
* @property {number=} unmovableColumns Number of columns that is unmovable in Visible Columns.
|
|
22
|
+
* @property {number=} unmovableColumns Depricated, Alias with stationary column option. Number of columns that is unmovable in Visible Columns.
|
|
23
23
|
* @property {boolean=} descriptionBox Show description box
|
|
24
24
|
*/
|
|
25
25
|
|
|
@@ -283,7 +283,8 @@ const _toCoralTreeItem = function (colObj, parent) {
|
|
|
283
283
|
strGroup: parent,
|
|
284
284
|
value: currentId,
|
|
285
285
|
selected: false,
|
|
286
|
-
disabled: colObj.disabled == true
|
|
286
|
+
disabled: colObj.disabled == true,
|
|
287
|
+
stationary: colObj.stationary == true
|
|
287
288
|
};
|
|
288
289
|
}
|
|
289
290
|
};
|
|
@@ -298,7 +299,8 @@ const _toCoralItem = function(item) {
|
|
|
298
299
|
label: item.label,
|
|
299
300
|
value: item.value,
|
|
300
301
|
selected: false,
|
|
301
|
-
disabled: item.disabled
|
|
302
|
+
disabled: item.disabled,
|
|
303
|
+
stationary: item.stationary
|
|
302
304
|
};
|
|
303
305
|
};
|
|
304
306
|
/** Valid item must have an id or a field
|
|
@@ -848,13 +850,27 @@ class ColumnSelectionDialog extends BasicElement {
|
|
|
848
850
|
this._excludedRightColumns = _ensurePositiveNumber(itemCount - this._excludedLeftColumns);
|
|
849
851
|
}
|
|
850
852
|
|
|
851
|
-
this._unmovableColumns = _ensurePositiveNumber(config.unmovableColumns);
|
|
852
|
-
this._unmovableColumns += autoGeneratedColumnCount - this._excludedLeftColumns;
|
|
853
|
-
|
|
854
853
|
this._initialColumnMap = _createMapping(allItems, 'id');
|
|
855
854
|
this._excludedLeftVisibleColumnList = visibleItems.slice(0, this._excludedLeftColumns);
|
|
856
855
|
this._excludedRightVisibleColumnList = visibleItems.slice(itemCount - this._excludedRightColumns);
|
|
857
856
|
|
|
857
|
+
var stationaryLeftColumnIndex = -1;
|
|
858
|
+
for(i = allItems.length - 1; i >= 0; i--) {
|
|
859
|
+
item = allItems[i];
|
|
860
|
+
|
|
861
|
+
if(i < stationaryLeftColumnIndex) {
|
|
862
|
+
item.disabled = true;
|
|
863
|
+
} else {
|
|
864
|
+
if(item.stationary || i < config.unmovableColumns) {
|
|
865
|
+
stationaryLeftColumnIndex = i + 1; // unmoveable count by columns so we need to add 1 to index for backward compatibility
|
|
866
|
+
item.disabled = true;
|
|
867
|
+
this._unmovableColumns = _ensurePositiveNumber(stationaryLeftColumnIndex);
|
|
868
|
+
this._unmovableColumns += autoGeneratedColumnCount - this._excludedLeftColumns;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
}
|
|
873
|
+
|
|
858
874
|
this._allColumnList = allItems.map(function (obj) {
|
|
859
875
|
return _toCoralTreeItem(obj);
|
|
860
876
|
});
|