@refinitiv-ui/efx-grid 6.0.5 → 6.0.7
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 +456 -269
- 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 +44 -11
- 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 +8 -4
- package/lib/core/es6/data/Segment.js +16 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +9 -7
- package/lib/core/es6/data/SegmentCollection.js +38 -36
- package/lib/core/es6/data/WrappedView.d.ts +62 -62
- package/lib/core/es6/grid/Core.d.ts +95 -95
- package/lib/core/es6/grid/Core.js +173 -25
- 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/Cell.js +3 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +4 -2
- package/lib/core/es6/grid/components/CellFloatingPanel.js +7 -0
- 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 +9 -9
- package/lib/core/es6/grid/components/StretchedCells.js +19 -5
- 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/index.d.ts +1 -0
- package/lib/core/es6/index.js +2 -0
- 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/formatters/es6/index.d.ts +1 -1
- package/lib/formatters/es6/index.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/lib/efx-grid.js +3 -0
- 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 +689 -367
- 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 +102 -94
- package/lib/rt-grid/es6/Grid.js +70 -105
- 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 +3 -3
- 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 +50 -54
- 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 +11 -2
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +309 -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 +2 -3
- 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/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 +10 -4
- package/lib/tr-grid-util/es6/ElfUtil.js +53 -4
- 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/CellSelection.d.ts +11 -11
- 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 +11 -2
- 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 +8 -4
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +9 -7
- package/lib/types/es6/Core/data/WrappedView.d.ts +62 -62
- package/lib/types/es6/Core/grid/Core.d.ts +95 -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 +9 -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/Core/index.d.ts +1 -0
- 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 +100 -92
- 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 +3 -3
- 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 +27 -27
- package/package.json +2 -2
@@ -6,43 +6,43 @@ declare namespace FilterBuilder {
|
|
6
6
|
|
7
7
|
type Options = {
|
8
8
|
field: string,
|
9
|
-
formatter?: ((...params: any[]) => any),
|
10
|
-
formattedField?: string
|
9
|
+
formatter?: ((...params: any[]) => any)|null,
|
10
|
+
formattedField?: string|null
|
11
11
|
};
|
12
12
|
|
13
|
-
type Condition = any[];
|
13
|
+
type Condition = any[]|null;
|
14
14
|
|
15
|
-
type Conditions = (FilterBuilder.Condition)[];
|
15
|
+
type Conditions = (FilterBuilder.Condition)[]|null;
|
16
16
|
|
17
17
|
}
|
18
18
|
|
19
19
|
declare class FilterBuilder {
|
20
20
|
|
21
|
-
constructor(options?: FilterBuilder.Options);
|
21
|
+
constructor(options?: FilterBuilder.Options|null);
|
22
22
|
|
23
23
|
public reset(): void;
|
24
24
|
|
25
|
-
public init(options?: FilterBuilder.Options): void;
|
25
|
+
public init(options?: FilterBuilder.Options|null): void;
|
26
26
|
|
27
|
-
public setFieldDefinition(fieldName: string, formatter?: ((...params: any[]) => any), formattedField?: string): void;
|
27
|
+
public setFieldDefinition(fieldName: string, formatter?: ((...params: any[]) => any)|null, formattedField?: string|null): void;
|
28
28
|
|
29
|
-
public setDataAccessors(rawDataAccessor?: ((...params: any[]) => any), formattedDataAccessor?: ((...params: any[]) => any)): void;
|
29
|
+
public setDataAccessors(rawDataAccessor?: ((...params: any[]) => any)|null, formattedDataAccessor?: ((...params: any[]) => any)|null): void;
|
30
30
|
|
31
|
-
public addCondition(oper: string, value: string|number, connector?: string): boolean;
|
31
|
+
public addCondition(oper: string, value: string|number|null, connector?: string|null, useUTCTime?: boolean|null): boolean;
|
32
32
|
|
33
|
-
public addConditions(conditions: FilterBuilder.Conditions): number;
|
33
|
+
public addConditions(conditions: FilterBuilder.Conditions|null): number;
|
34
34
|
|
35
35
|
public getConditions(): FilterBuilder.Conditions|null;
|
36
36
|
|
37
37
|
public buildFilter(): ((...params: any[]) => any)|null;
|
38
38
|
|
39
|
-
public buildMonitorFilter(filterStr: string, field: string, formatter?: ((...params: any[]) => any), formattedField?: string): ((...params: any[]) => any)|null;
|
39
|
+
public buildMonitorFilter(filterStr: string, field: string, formatter?: ((...params: any[]) => any)|null, formattedField?: string|null): ((...params: any[]) => any)|null;
|
40
40
|
|
41
|
-
public parse(condition: any, field?: string, formatter?: ((...params: any[]) => any), formattedField?: string, rawDataAccessor?: ((...params: any[]) => any), formattedDataAccessor?: ((...params: any[]) => any)): ((...params: any[]) => any)|null;
|
41
|
+
public parse(condition: any, field?: string|null, formatter?: ((...params: any[]) => any)|null, formattedField?: string|null, rawDataAccessor?: ((...params: any[]) => any)|null, formattedDataAccessor?: ((...params: any[]) => any)|null): ((...params: any[]) => any)|null;
|
42
42
|
|
43
43
|
}
|
44
44
|
|
45
|
-
declare function buildFilterFromObjectMap(obj: any, field: string, rawDataAccessor?: ((...params: any[]) => any)): ((...params: any[]) => any)|null;
|
45
|
+
declare function buildFilterFromObjectMap(obj: any, field: string, rawDataAccessor?: ((...params: any[]) => any)|null): ((...params: any[]) => any)|null;
|
46
46
|
|
47
47
|
export default FilterBuilder;
|
48
48
|
export { FilterBuilder, buildFilterFromObjectMap };
|
@@ -169,9 +169,10 @@ FilterBuilder.prototype.setDataAccessors = function(rawDataAccessor, formattedDa
|
|
169
169
|
* @param {string} oper Operator id (e.g., "GT", "CONT", "EQ")
|
170
170
|
* @param {string|number} value
|
171
171
|
* @param {string=} connector Possible values are "OR" and "AND"
|
172
|
+
* @param {boolean=} useUTCTime If false use local time for filtering
|
172
173
|
* @return {boolean} Return true, if the new condition is added
|
173
174
|
*/
|
174
|
-
FilterBuilder.prototype.addCondition = function (oper, value, connector) {
|
175
|
+
FilterBuilder.prototype.addCondition = function (oper, value, connector, useUTCTime) {
|
175
176
|
oper = oper ? oper.toUpperCase() : "";
|
176
177
|
var opDef = FilterOperators[oper];
|
177
178
|
if (!opDef) {
|
@@ -190,7 +191,8 @@ FilterBuilder.prototype.addCondition = function (oper, value, connector) {
|
|
190
191
|
this._conditions.push({
|
191
192
|
operatorId: oper,
|
192
193
|
value: value,
|
193
|
-
connector: connector || ""
|
194
|
+
connector: connector || "",
|
195
|
+
useUTCTime: useUTCTime
|
194
196
|
});
|
195
197
|
|
196
198
|
return true;
|
@@ -206,7 +208,7 @@ FilterBuilder.prototype.addConditions = function (conditions) {
|
|
206
208
|
for(var i = 0; i < len; ++i) {
|
207
209
|
var condition = conditions[i];
|
208
210
|
if(Array.isArray(condition)) {
|
209
|
-
if(this.addCondition(condition[0], condition[1], condition[2])) {
|
211
|
+
if(this.addCondition(condition[0], condition[1], condition[2], condition[3])) {
|
210
212
|
++count;
|
211
213
|
}
|
212
214
|
}
|
@@ -312,11 +314,6 @@ FilterBuilder.prototype.buildFilter = function() {
|
|
312
314
|
filterStr.push("var ts = 0;");
|
313
315
|
filterStr.push("if(!val || val != val || !val.getTime) {");
|
314
316
|
filterStr.push(" return false;");
|
315
|
-
filterStr.push("} else {");
|
316
|
-
filterStr.push(" ts = val.getTime();");
|
317
|
-
filterStr.push(" if(ts !== ts) {");
|
318
|
-
filterStr.push(" return false;");
|
319
|
-
filterStr.push(" }");
|
320
317
|
filterStr.push("}");
|
321
318
|
}
|
322
319
|
|
@@ -366,6 +363,16 @@ FilterBuilder.prototype.buildFilter = function() {
|
|
366
363
|
} else if(opDef.type === "date") {
|
367
364
|
if(DateTime.isValidDate(inputVal)) {
|
368
365
|
var varName;
|
366
|
+
if(!cond.useUTCTime){
|
367
|
+
filterStr.push("ts = new Date(val.getFullYear(),val.getMonth(),val.getDate())");
|
368
|
+
} else {
|
369
|
+
filterStr.push("ts = new Date(Date.UTC(val.getUTCFullYear(),val.getUTCMonth(),val.getUTCDate()))");
|
370
|
+
}
|
371
|
+
filterStr.push("ts = ts.getTime()");
|
372
|
+
filterStr.push("if(ts !== ts) {");
|
373
|
+
filterStr.push(" return false;");
|
374
|
+
filterStr.push("}");
|
375
|
+
|
369
376
|
if(cond.operatorId === "DT") {
|
370
377
|
varName = "ts" + (i + 1);
|
371
378
|
inputVal = inputVal.getTime();
|
@@ -11,28 +11,28 @@ declare namespace FilterOperators {
|
|
11
11
|
};
|
12
12
|
|
13
13
|
type Operators = {
|
14
|
-
EQ: FilterOperators.Operator,
|
15
|
-
NEQ: FilterOperators.Operator,
|
16
|
-
NUMEQ: FilterOperators.Operator,
|
17
|
-
NUMNEQ: FilterOperators.Operator,
|
18
|
-
GT: FilterOperators.Operator,
|
19
|
-
GTE: FilterOperators.Operator,
|
20
|
-
LT: FilterOperators.Operator,
|
21
|
-
LTE: FilterOperators.Operator,
|
22
|
-
BEGIN: FilterOperators.Operator,
|
23
|
-
NBEGIN: FilterOperators.Operator,
|
24
|
-
END: FilterOperators.Operator,
|
25
|
-
NEND: FilterOperators.Operator,
|
26
|
-
CONT: FilterOperators.Operator,
|
27
|
-
NCONT: FilterOperators.Operator,
|
28
|
-
EQ_BLANK: FilterOperators.Operator,
|
29
|
-
EQ_NBLANK: FilterOperators.Operator,
|
30
|
-
DT: FilterOperators.Operator,
|
31
|
-
DTA: FilterOperators.Operator,
|
32
|
-
DTB: FilterOperators.Operator,
|
33
|
-
TXTEQ: FilterOperators.Operator,
|
34
|
-
BLANK: FilterOperators.Operator,
|
35
|
-
NBLANK: FilterOperators.Operator
|
14
|
+
EQ: FilterOperators.Operator|null,
|
15
|
+
NEQ: FilterOperators.Operator|null,
|
16
|
+
NUMEQ: FilterOperators.Operator|null,
|
17
|
+
NUMNEQ: FilterOperators.Operator|null,
|
18
|
+
GT: FilterOperators.Operator|null,
|
19
|
+
GTE: FilterOperators.Operator|null,
|
20
|
+
LT: FilterOperators.Operator|null,
|
21
|
+
LTE: FilterOperators.Operator|null,
|
22
|
+
BEGIN: FilterOperators.Operator|null,
|
23
|
+
NBEGIN: FilterOperators.Operator|null,
|
24
|
+
END: FilterOperators.Operator|null,
|
25
|
+
NEND: FilterOperators.Operator|null,
|
26
|
+
CONT: FilterOperators.Operator|null,
|
27
|
+
NCONT: FilterOperators.Operator|null,
|
28
|
+
EQ_BLANK: FilterOperators.Operator|null,
|
29
|
+
EQ_NBLANK: FilterOperators.Operator|null,
|
30
|
+
DT: FilterOperators.Operator|null,
|
31
|
+
DTA: FilterOperators.Operator|null,
|
32
|
+
DTB: FilterOperators.Operator|null,
|
33
|
+
TXTEQ: FilterOperators.Operator|null,
|
34
|
+
BLANK: FilterOperators.Operator|null,
|
35
|
+
NBLANK: FilterOperators.Operator|null
|
36
36
|
};
|
37
37
|
|
38
38
|
}
|
@@ -153,21 +153,21 @@ var FilterOperators = {
|
|
153
153
|
type: "date",
|
154
154
|
positive: 1,
|
155
155
|
caseSensitive: 1,
|
156
|
-
formula: "
|
156
|
+
formula: "ts === input"
|
157
157
|
},
|
158
158
|
DTA: {
|
159
159
|
name: "Date is After",
|
160
160
|
type: "date",
|
161
161
|
positive: 1,
|
162
162
|
caseSensitive: 1,
|
163
|
-
formula: "
|
163
|
+
formula: "ts > input"
|
164
164
|
},
|
165
165
|
DTB: {
|
166
166
|
name: "Date is Before",
|
167
167
|
type: "date",
|
168
168
|
positive: 1,
|
169
169
|
caseSensitive: 1,
|
170
|
-
formula: "
|
170
|
+
formula: "ts < input"
|
171
171
|
}
|
172
172
|
};
|
173
173
|
|
@@ -6,11 +6,11 @@ declare class GridPlugin extends EventDispatcher {
|
|
6
6
|
|
7
7
|
constructor();
|
8
8
|
|
9
|
-
public listen(type: string, handler: ((...params: any[]) => any)): void;
|
9
|
+
public listen(type: string, handler: ((...params: any[]) => any)|null): void;
|
10
10
|
|
11
|
-
public unlisten(type: string, handler: ((...params: any[]) => any)): void;
|
11
|
+
public unlisten(type: string, handler: ((...params: any[]) => any)|null): void;
|
12
12
|
|
13
|
-
public afterInit(elem?: Element, model?: any, grid?: any): void;
|
13
|
+
public afterInit(elem?: Element|null, model?: any, grid?: any): void;
|
14
14
|
|
15
15
|
public hasMultiTableSupport(): boolean;
|
16
16
|
|
@@ -20,19 +20,19 @@ declare class GridPlugin extends EventDispatcher {
|
|
20
20
|
|
21
21
|
public unload(host?: any): void;
|
22
22
|
|
23
|
-
public getRelativeGrid(e: Event|Element|any): any
|
23
|
+
public getRelativeGrid(e: Event|Element|any): any;
|
24
24
|
|
25
25
|
public setGridWrapper(gridType: string, wrapperInstance: any): void;
|
26
26
|
|
27
|
-
public getGridApi(coreRef?: (number|any)): any;
|
27
|
+
public getGridApi(coreRef?: (number|any)|null): any;
|
28
28
|
|
29
|
-
public getColumnName(colRef: number|string): string;
|
29
|
+
public getColumnName(colRef: number|string|null): string;
|
30
30
|
|
31
|
-
public getColumnIndex(colId: number|string): number;
|
31
|
+
public getColumnIndex(colId: number|string|null): number;
|
32
32
|
|
33
|
-
public getColumnIndices(colRefs: (number|string)[]): (number)[]|null;
|
33
|
+
public getColumnIndices(colRefs: (number|string)[]|null): (number)[]|null;
|
34
34
|
|
35
|
-
public getColumnId(colIndex: number|string): string;
|
35
|
+
public getColumnId(colIndex: number|string|null): string;
|
36
36
|
|
37
37
|
public getColumnCount(): number;
|
38
38
|
|
@@ -42,7 +42,7 @@ declare class GridPlugin extends EventDispatcher {
|
|
42
42
|
|
43
43
|
declare function gridAPI(gridType: string, wrapperInstance: any): void;
|
44
44
|
|
45
|
-
declare function exportExtension(winObj: Window|any, plugin: GridPlugin): void;
|
45
|
+
declare function exportExtension(winObj: Window|any|null, plugin: GridPlugin|null): void;
|
46
46
|
|
47
47
|
declare function defaultDataGetter(field: string, dvRowData: any): any;
|
48
48
|
|
@@ -581,6 +581,26 @@ GridPlugin.prototype._setRowData = function(dv, rowIndex, rowData) {
|
|
581
581
|
dv.setRowDataAt(rowIndex, rowData);
|
582
582
|
}
|
583
583
|
};
|
584
|
+
|
585
|
+
/** @protected
|
586
|
+
* @ignore
|
587
|
+
* @param {tr.DataView} dv
|
588
|
+
* @param {number} rowIndex
|
589
|
+
* @param {string} field
|
590
|
+
* @param {*} value
|
591
|
+
*/
|
592
|
+
GridPlugin.prototype._setStaticData = function(dv, rowIndex, field, value) {
|
593
|
+
if(this._realTimeGrid) {
|
594
|
+
var dvRowData = dv.getRowDataAt(rowIndex);
|
595
|
+
if(dvRowData) {
|
596
|
+
dvRowData["ROW_DEF"].setStaticData(field, value);
|
597
|
+
}
|
598
|
+
} else {
|
599
|
+
// TODO: composite grid should be has staticValues when get configObject, wait for request feature
|
600
|
+
dv.setDataAt(rowIndex, field, value);
|
601
|
+
}
|
602
|
+
};
|
603
|
+
|
584
604
|
/** Set data in a column manner. This is faster than repeatedly calling this._setData
|
585
605
|
* @protected
|
586
606
|
* @ignore
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
declare namespace Icon {
|
4
4
|
|
5
|
-
function create(iconName?: string, className?: string): Element;
|
5
|
+
function create(iconName?: string|null, className?: string|null): Element;
|
6
6
|
|
7
|
-
function box(iconName?: string, className?: string, boxRef?: (string|Element)): Element;
|
7
|
+
function box(iconName?: string|null, className?: string|null, boxRef?: (string|Element)|null): Element;
|
8
8
|
|
9
|
-
function change(iconElem: Element, iconName?: string): void;
|
9
|
+
function change(iconElem: Element|null, iconName?: string|null): void;
|
10
10
|
|
11
11
|
}
|
12
12
|
|
@@ -5,26 +5,26 @@ import {TouchProxy} from "./TouchProxy.js";
|
|
5
5
|
declare namespace MouseDownTrait {
|
6
6
|
|
7
7
|
type Options = {
|
8
|
-
useDragStart?: boolean,
|
9
|
-
useTouchMove?: boolean,
|
10
|
-
preventDefault?: boolean
|
8
|
+
useDragStart?: boolean|null,
|
9
|
+
useTouchMove?: boolean|null,
|
10
|
+
preventDefault?: boolean|null
|
11
11
|
};
|
12
12
|
|
13
13
|
}
|
14
14
|
|
15
15
|
declare class MouseDownTrait extends EventDispatcher {
|
16
16
|
|
17
|
-
constructor(elem?: Element, options?: (string|MouseDownTrait.Options));
|
17
|
+
constructor(elem?: Element|null, options?: (string|MouseDownTrait.Options)|null);
|
18
18
|
|
19
19
|
public dispose(): void;
|
20
20
|
|
21
|
-
public disable(opt_bool?: boolean): void;
|
21
|
+
public disable(opt_bool?: boolean|null): void;
|
22
22
|
|
23
|
-
public enable(opt_bool?: boolean): void;
|
23
|
+
public enable(opt_bool?: boolean|null): void;
|
24
24
|
|
25
25
|
public getElement(): Element|null;
|
26
26
|
|
27
|
-
public setElement(elem?: Element): void;
|
27
|
+
public setElement(elem?: Element|null): void;
|
28
28
|
|
29
29
|
public reset(): void;
|
30
30
|
|
@@ -34,7 +34,7 @@ declare class MouseDownTrait extends EventDispatcher {
|
|
34
34
|
|
35
35
|
public isMouseUp(): boolean;
|
36
36
|
|
37
|
-
public getDuration(dateObj?: Date): number;
|
37
|
+
public getDuration(dateObj?: Date|null): number;
|
38
38
|
|
39
39
|
}
|
40
40
|
|
@@ -6,9 +6,9 @@ import { Dom } from "./Dom.js";
|
|
6
6
|
|
7
7
|
declare class MultiTableManager {
|
8
8
|
|
9
|
-
constructor(gridElem: Element);
|
9
|
+
constructor(gridElem: Element|null);
|
10
10
|
|
11
|
-
public static synchronizeVScrollbar(vScrollbarHost: Element, hScrollbarHost: Element, gridElems: (Element)[]): Promise<any[]>|null;
|
11
|
+
public static synchronizeVScrollbar(vScrollbarHost: Element|null, hScrollbarHost: Element|null, gridElems: (Element)[]|null): Promise<any[]>|null;
|
12
12
|
|
13
13
|
public setGridConfig(configObj?: any): void;
|
14
14
|
|
@@ -20,15 +20,15 @@ declare class MultiTableManager {
|
|
20
20
|
|
21
21
|
public wrapTable(rowCount: number): void;
|
22
22
|
|
23
|
-
public getTable(at?: number): Element|null;
|
23
|
+
public getTable(at?: number|null): Element|null;
|
24
24
|
|
25
|
-
public insertRow(rowOption?: any, at?: number): void;
|
25
|
+
public insertRow(rowOption?: any, at?: number|null): void;
|
26
26
|
|
27
|
-
public removeRow(at?: number): void;
|
27
|
+
public removeRow(at?: number|null): void;
|
28
28
|
|
29
29
|
public getRowCount(): number;
|
30
30
|
|
31
|
-
public insertColumn(columnOption: any, idx?: number): void;
|
31
|
+
public insertColumn(columnOption: any, idx?: number|null): void;
|
32
32
|
|
33
33
|
public removeColumn(colRef: any): void;
|
34
34
|
|
@@ -3,25 +3,25 @@
|
|
3
3
|
declare namespace NumberFormatter {
|
4
4
|
|
5
5
|
type Options = {
|
6
|
-
formatType?: string,
|
6
|
+
formatType?: string|null,
|
7
7
|
type: string,
|
8
|
-
precisionEnabled?: boolean,
|
9
|
-
decimalPlaces?: number,
|
10
|
-
plusSign?: boolean,
|
11
|
-
separator?: boolean,
|
12
|
-
percentSign?: boolean,
|
13
|
-
scalingUnit?: string,
|
14
|
-
multiplyBy100?: boolean,
|
15
|
-
mutiplyBy100?: boolean
|
8
|
+
precisionEnabled?: boolean|null,
|
9
|
+
decimalPlaces?: number|null,
|
10
|
+
plusSign?: boolean|null,
|
11
|
+
separator?: boolean|null,
|
12
|
+
percentSign?: boolean|null,
|
13
|
+
scalingUnit?: string|null,
|
14
|
+
multiplyBy100?: boolean|null,
|
15
|
+
mutiplyBy100?: boolean|null
|
16
16
|
};
|
17
17
|
|
18
18
|
}
|
19
19
|
|
20
20
|
declare class NumberFormatter {
|
21
21
|
|
22
|
-
constructor(options?: NumberFormatter.Options);
|
22
|
+
constructor(options?: NumberFormatter.Options|null);
|
23
23
|
|
24
|
-
public init(options?: NumberFormatter.Options): void;
|
24
|
+
public init(options?: NumberFormatter.Options|null): void;
|
25
25
|
|
26
26
|
public resetToDefaults(): void;
|
27
27
|
|
@@ -35,21 +35,21 @@ declare class NumberFormatter {
|
|
35
35
|
|
36
36
|
public enableDefaultFormat(): void;
|
37
37
|
|
38
|
-
public enablePrecision(bool?: boolean): void;
|
38
|
+
public enablePrecision(bool?: boolean|null): void;
|
39
39
|
|
40
|
-
public enableSeparator(bool?: boolean): void;
|
40
|
+
public enableSeparator(bool?: boolean|null): void;
|
41
41
|
|
42
|
-
public enablePercentSign(bool?: boolean): void;
|
42
|
+
public enablePercentSign(bool?: boolean|null): void;
|
43
43
|
|
44
|
-
public enablePercentFormat(bool?: boolean): void;
|
44
|
+
public enablePercentFormat(bool?: boolean|null): void;
|
45
45
|
|
46
|
-
public enablePlusSign(bool?: boolean): void;
|
46
|
+
public enablePlusSign(bool?: boolean|null): void;
|
47
47
|
|
48
|
-
public enableMultiplyBy100(bool?: boolean): void;
|
48
|
+
public enableMultiplyBy100(bool?: boolean|null): void;
|
49
49
|
|
50
|
-
public enableMillionScaling(bool?: boolean): void;
|
50
|
+
public enableMillionScaling(bool?: boolean|null): void;
|
51
51
|
|
52
|
-
public enableBillionScaling(bool?: boolean): void;
|
52
|
+
public enableBillionScaling(bool?: boolean|null): void;
|
53
53
|
|
54
54
|
public isDefaultFormatEnabled(): boolean;
|
55
55
|
|
@@ -5,23 +5,23 @@ import { injectCss, prettifyCss } from "./Util.js";
|
|
5
5
|
declare namespace PercentBar {
|
6
6
|
|
7
7
|
type Options = {
|
8
|
-
alignment?: string,
|
9
|
-
movementColor?: boolean,
|
10
|
-
barColor?: string,
|
11
|
-
textHidden?: boolean,
|
12
|
-
textWidth?: (number|string),
|
13
|
-
zeroValueHidden?: boolean
|
8
|
+
alignment?: string|null,
|
9
|
+
movementColor?: boolean|null,
|
10
|
+
barColor?: string|null,
|
11
|
+
textHidden?: boolean|null,
|
12
|
+
textWidth?: (number|string)|null,
|
13
|
+
zeroValueHidden?: boolean|null
|
14
14
|
};
|
15
15
|
|
16
16
|
}
|
17
17
|
|
18
18
|
declare class PercentBar {
|
19
19
|
|
20
|
-
constructor(elem?: (Element|null), options?: PercentBar.Options);
|
20
|
+
constructor(elem?: (Element|null)|null, options?: PercentBar.Options|null);
|
21
21
|
|
22
|
-
public static injectCss(hostElem: Element): void;
|
22
|
+
public static injectCss(hostElem: Element|null): void;
|
23
23
|
|
24
|
-
public static toAlignment(str: string|null): string;
|
24
|
+
public static toAlignment(str: string|null|null): string;
|
25
25
|
|
26
26
|
public getElement(): Element|null;
|
27
27
|
|
@@ -31,21 +31,21 @@ declare class PercentBar {
|
|
31
31
|
|
32
32
|
public isInvalid(): boolean;
|
33
33
|
|
34
|
-
public setValue(value: number, opt_max?: number, displayText?: (string|boolean)): void;
|
34
|
+
public setValue(value: number, opt_max?: number|null, displayText?: (string|boolean)|null): void;
|
35
35
|
|
36
36
|
public setMax(absVal: number): void;
|
37
37
|
|
38
|
-
public hideZeroValue(hidden?: boolean): boolean;
|
38
|
+
public hideZeroValue(hidden?: boolean|null): boolean;
|
39
39
|
|
40
40
|
public setText(txt: string): void;
|
41
41
|
|
42
|
-
public hideText(hidden?: boolean): boolean;
|
42
|
+
public hideText(hidden?: boolean|null): boolean;
|
43
43
|
|
44
44
|
public isTextHidden(): boolean;
|
45
45
|
|
46
|
-
public setTextWidth(width: number|string): void;
|
46
|
+
public setTextWidth(width: number|string|null): void;
|
47
47
|
|
48
|
-
public setMaxTextLength(width: number|string): void;
|
48
|
+
public setMaxTextLength(width: number|string|null): void;
|
49
49
|
|
50
50
|
public getTextScrollWidth(): number;
|
51
51
|
|
@@ -53,19 +53,19 @@ declare class PercentBar {
|
|
53
53
|
|
54
54
|
public setAlignment(alignment: string): void;
|
55
55
|
|
56
|
-
public useMovementColor(opt_enabled?: boolean): void;
|
56
|
+
public useMovementColor(opt_enabled?: boolean|null): void;
|
57
57
|
|
58
|
-
public setTrackColor(color?: string): void;
|
58
|
+
public setTrackColor(color?: string|null): void;
|
59
59
|
|
60
|
-
public setBarColor(color?: string): void;
|
60
|
+
public setBarColor(color?: string|null): void;
|
61
61
|
|
62
|
-
public enableTooltip(enabled?: boolean): void;
|
62
|
+
public enableTooltip(enabled?: boolean|null): void;
|
63
63
|
|
64
64
|
public updateBarColor(): void;
|
65
65
|
|
66
66
|
}
|
67
67
|
|
68
|
-
declare function toAlignment(str: string|null): string;
|
68
|
+
declare function toAlignment(str: string|null|null): string;
|
69
69
|
|
70
70
|
export default PercentBar;
|
71
71
|
export { PercentBar, toAlignment };
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
declare namespace Perf {
|
4
4
|
|
5
|
-
function enable(enabled?: boolean): void;
|
5
|
+
function enable(enabled?: boolean|null): void;
|
6
6
|
|
7
7
|
function isEnabled(): boolean;
|
8
8
|
|
@@ -14,15 +14,15 @@ declare namespace Perf {
|
|
14
14
|
|
15
15
|
function getEntries(): (PerformanceEntry)[]|null;
|
16
16
|
|
17
|
-
function getEntriesByName(entryName: string, entryType?: string): (PerformanceEntry)[]|null;
|
17
|
+
function getEntriesByName(entryName: string, entryType?: string|null): (PerformanceEntry)[]|null;
|
18
18
|
|
19
19
|
function getEntriesByType(entryType: string): (PerformanceEntry)[]|null;
|
20
20
|
|
21
|
-
function getEntry(entryName: string, entryType?: string): PerformanceEntry|null;
|
21
|
+
function getEntry(entryName: string, entryType?: string|null): PerformanceEntry|null;
|
22
22
|
|
23
23
|
function mark(markName: string): void;
|
24
24
|
|
25
|
-
function measure(measureName: string, mark1?: string, mark2?: string): void;
|
25
|
+
function measure(measureName: string, mark1?: string|null, mark2?: string|null): void;
|
26
26
|
|
27
27
|
function now(): number;
|
28
28
|
|
@@ -5,17 +5,18 @@ import { Dom } from './Dom.js';
|
|
5
5
|
declare namespace Popup {
|
6
6
|
|
7
7
|
type Options = {
|
8
|
-
positioning?: Popup.Positioning,
|
9
|
-
autoHiding?: boolean,
|
10
|
-
hoverToShow?: boolean,
|
11
|
-
autoClipping?: boolean,
|
12
|
-
attachedElement?: Element,
|
13
|
-
focusElement?: Element,
|
14
|
-
focusElements?: (Element)[],
|
15
|
-
parentElement?: Element,
|
16
|
-
contentElement?: Element,
|
17
|
-
popupChild?: Popup,
|
18
|
-
uiBlocking?: boolean
|
8
|
+
positioning?: Popup.Positioning|null,
|
9
|
+
autoHiding?: boolean|null,
|
10
|
+
hoverToShow?: boolean|null,
|
11
|
+
autoClipping?: boolean|null,
|
12
|
+
attachedElement?: Element|null,
|
13
|
+
focusElement?: Element|null,
|
14
|
+
focusElements?: (Element)[]|null,
|
15
|
+
parentElement?: Element|null,
|
16
|
+
contentElement?: Element|null,
|
17
|
+
popupChild?: Popup|null,
|
18
|
+
uiBlocking?: boolean|null,
|
19
|
+
hideOnScroll?: boolean|null
|
19
20
|
};
|
20
21
|
|
21
22
|
type Positioning = string;
|
@@ -24,61 +25,63 @@ declare namespace Popup {
|
|
24
25
|
|
25
26
|
declare class Popup extends EventDispatcher {
|
26
27
|
|
27
|
-
constructor(popupElem?: (Element|Popup.Options), options?: Popup.Options);
|
28
|
+
constructor(popupElem?: (Element|Popup.Options)|null, options?: Popup.Options|null);
|
28
29
|
|
29
30
|
public dispose(): void;
|
30
31
|
|
31
32
|
public getElement(): Element|null;
|
32
33
|
|
33
|
-
public appendChild(childElem: Element): void;
|
34
|
+
public appendChild(childElem: Element|null): void;
|
34
35
|
|
35
|
-
public disable(opt_bool?: boolean): void;
|
36
|
+
public disable(opt_bool?: boolean|null): void;
|
36
37
|
|
37
|
-
public enable(opt_bool?: boolean): void;
|
38
|
+
public enable(opt_bool?: boolean|null): void;
|
38
39
|
|
39
|
-
public init(options?: Popup.Options): void;
|
40
|
+
public init(options?: Popup.Options|null): void;
|
40
41
|
|
41
|
-
public attachTo(elem: Element, positioning?: Popup.Positioning): void;
|
42
|
+
public attachTo(elem: Element|null, positioning?: Popup.Positioning|null): void;
|
42
43
|
|
43
|
-
public setAttachedElement(elem: Element, positioning?: Popup.Positioning): void;
|
44
|
+
public setAttachedElement(elem: Element|null, positioning?: Popup.Positioning|null): void;
|
44
45
|
|
45
|
-
public addFocusElement(elem: Element): void;
|
46
|
+
public addFocusElement(elem: Element|null): void;
|
46
47
|
|
47
|
-
public removeFocusElement(elem: Element): void;
|
48
|
+
public removeFocusElement(elem: Element|null): void;
|
48
49
|
|
49
|
-
public addPopupChild(popup?: Popup): Popup;
|
50
|
+
public addPopupChild(popup?: Popup|null): Popup;
|
50
51
|
|
51
|
-
public setPopupGap(gap?: number): void;
|
52
|
+
public setPopupGap(gap?: number|null): void;
|
52
53
|
|
53
|
-
public setParentElement(parentElement: Element): Element|null;
|
54
|
+
public setParentElement(parentElement: Element|null): Element|null;
|
54
55
|
|
55
|
-
public show(opt_shown?: boolean, parentElement?: Element): void;
|
56
|
+
public show(opt_shown?: boolean|null, parentElement?: Element|null): void;
|
56
57
|
|
57
|
-
public hide(opt_hidden?: boolean): void;
|
58
|
+
public hide(opt_hidden?: boolean|null): void;
|
58
59
|
|
59
|
-
public toggle(force?: boolean, parentElement?: Element): void;
|
60
|
+
public toggle(force?: boolean|null, parentElement?: Element|null): void;
|
60
61
|
|
61
62
|
public isShown(): boolean;
|
62
63
|
|
63
64
|
public isHidden(): boolean;
|
64
65
|
|
65
|
-
public contains(elems: Element|(Element)[]): boolean;
|
66
|
+
public contains(elems: Element|(Element)[]|null): boolean;
|
66
67
|
|
67
|
-
public setPositioning(posType: Popup.Positioning): void;
|
68
|
+
public setPositioning(posType: Popup.Positioning|null): void;
|
68
69
|
|
69
|
-
public disableAutoHiding(opt_disabled?: boolean): void;
|
70
|
+
public disableAutoHiding(opt_disabled?: boolean|null): void;
|
70
71
|
|
71
|
-
public disableAutoClipping(opt_disabled?: boolean): void;
|
72
|
+
public disableAutoClipping(opt_disabled?: boolean|null): void;
|
73
|
+
|
74
|
+
public disableHideOnScroll(opt_disabled?: boolean|null): void;
|
72
75
|
|
73
76
|
public updatePosition(): void;
|
74
77
|
|
75
|
-
public enableUIBlocking(bool?: boolean): boolean;
|
78
|
+
public enableUIBlocking(bool?: boolean|null): boolean;
|
76
79
|
|
77
80
|
}
|
78
81
|
|
79
|
-
declare function containElements(parentElem: Element, e: MouseEvent): boolean;
|
82
|
+
declare function containElements(parentElem: Element|null, e: MouseEvent|null): boolean;
|
80
83
|
|
81
|
-
declare function fe(elem: Element, positioning?: Popup.Positioning): void;
|
84
|
+
declare function fe(elem: Element|null, positioning?: Popup.Positioning|null): void;
|
82
85
|
|
83
86
|
export { Popup, containElements };
|
84
87
|
export default Popup;
|