@refinitiv-ui/efx-grid 6.0.0 → 6.0.3

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 (151) hide show
  1. package/lib/column-format-dialog/lib/column-format-dialog.d.ts +13 -1
  2. package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
  3. package/lib/column-selection-dialog/lib/column-selection-dialog.js +226 -23
  4. package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
  5. package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
  6. package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
  7. package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
  8. package/lib/core/dist/core.css +1 -1
  9. package/lib/core/dist/core.js +10158 -7908
  10. package/lib/core/dist/core.min.js +1 -1
  11. package/lib/core/es6/data/DataTable.js +32 -10
  12. package/lib/core/es6/data/DataView.d.ts +16 -7
  13. package/lib/core/es6/data/DataView.js +172 -49
  14. package/lib/core/es6/data/Segment.d.ts +2 -0
  15. package/lib/core/es6/data/Segment.js +7 -0
  16. package/lib/core/es6/data/WrappedView.d.ts +289 -0
  17. package/lib/core/es6/data/WrappedView.js +1319 -0
  18. package/lib/core/es6/grid/Core.d.ts +13 -0
  19. package/lib/core/es6/grid/Core.js +406 -160
  20. package/lib/core/es6/grid/ILayoutGrid.d.ts +8 -0
  21. package/lib/core/es6/grid/ILayoutGrid.js +45 -2
  22. package/lib/core/es6/grid/LayoutGrid.d.ts +10 -1
  23. package/lib/core/es6/grid/LayoutGrid.js +257 -82
  24. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +10 -1
  25. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +316 -24
  26. package/lib/core/es6/grid/components/Column.js +8 -2
  27. package/lib/core/es6/grid/components/HScrollbar.d.ts +4 -0
  28. package/lib/core/es6/grid/components/HScrollbar.js +20 -4
  29. package/lib/core/es6/grid/util/TrackLayout.d.ts +1 -1
  30. package/lib/core/es6/grid/util/TrackLayout.js +2 -3
  31. package/lib/core/es6/tr-grid-theme.js +1 -1
  32. package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
  33. package/lib/filter-dialog/lib/filter-dialog.d.ts +13 -1
  34. package/lib/filter-dialog/lib/filter-dialog.js +24 -9
  35. package/lib/grid/lib/efx-grid.d.ts +27 -8
  36. package/lib/grid/lib/efx-grid.js +114 -115
  37. package/lib/grid/themes/base.less +5 -3
  38. package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
  39. package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
  40. package/lib/grid/themes/halo/efx-grid.less +69 -32
  41. package/lib/grid/themes/halo/light/efx-grid.js +1 -1
  42. package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
  43. package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
  44. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
  45. package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
  46. package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
  47. package/lib/index.d.ts +56 -56
  48. package/lib/index.js +56 -56
  49. package/lib/row-segmenting/es6/RowSegmenting.d.ts +1 -0
  50. package/lib/row-segmenting/es6/RowSegmenting.js +43 -12
  51. package/lib/rt-grid/dist/rt-grid.js +10293 -7865
  52. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  53. package/lib/rt-grid/es6/ColumnDefinition.d.ts +4 -1
  54. package/lib/rt-grid/es6/ColumnDefinition.js +3 -0
  55. package/lib/rt-grid/es6/Grid.d.ts +14 -7
  56. package/lib/rt-grid/es6/Grid.js +244 -75
  57. package/lib/rt-grid/es6/RowDefinition.d.ts +4 -1
  58. package/lib/rt-grid/es6/RowDefinition.js +52 -2
  59. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +1 -1
  60. package/lib/tr-grid-cell-selection/es6/CellSelection.js +53 -40
  61. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -1
  62. package/lib/tr-grid-checkbox/es6/Checkbox.js +41 -14
  63. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
  64. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +10 -0
  65. package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +5 -1
  66. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +226 -4
  67. package/lib/tr-grid-column-stack/es6/ColumnStack.js +3 -0
  68. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +6 -1
  69. package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +4 -2
  70. package/lib/tr-grid-filter-input/es6/FilterInput.js +73 -10
  71. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +1 -1
  72. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +13 -1
  73. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +1 -3
  74. package/lib/tr-grid-row-dragging/es6/RowDragging.js +165 -70
  75. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
  76. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +88 -33
  77. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +41 -31
  78. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +13 -9
  79. package/lib/tr-grid-row-selection/es6/RowSelection.js +220 -29
  80. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +2 -0
  81. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +36 -0
  82. package/lib/tr-grid-util/es6/CellPainter.d.ts +8 -8
  83. package/lib/tr-grid-util/es6/Conflator.d.ts +2 -2
  84. package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
  85. package/lib/tr-grid-util/es6/DateTime.d.ts +4 -4
  86. package/lib/tr-grid-util/es6/Delay.d.ts +1 -1
  87. package/lib/tr-grid-util/es6/Dom.d.ts +4 -4
  88. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +1 -1
  89. package/lib/tr-grid-util/es6/ElfDate.d.ts +3 -3
  90. package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -4
  91. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +1 -1
  92. package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
  93. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +1 -1
  94. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +5 -5
  95. package/lib/tr-grid-util/es6/GridPlugin.d.ts +3 -3
  96. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +1 -1
  97. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +10 -2
  98. package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
  99. package/lib/tr-grid-util/es6/PercentBar.d.ts +1 -1
  100. package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
  101. package/lib/tr-grid-util/es6/Popup.d.ts +2 -2
  102. package/lib/tr-grid-util/es6/RequestQueue.d.ts +1 -1
  103. package/lib/tr-grid-util/es6/RowPainter.d.ts +3 -0
  104. package/lib/tr-grid-util/es6/RowPainter.js +82 -20
  105. package/lib/tr-grid-util/es6/SubTable.d.ts +9 -9
  106. package/lib/tr-grid-util/es6/Table.d.ts +13 -13
  107. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +3 -3
  108. package/lib/tr-grid-util/es6/TickCodes.d.ts +2 -2
  109. package/lib/tr-grid-util/es6/TouchProxy.d.ts +1 -1
  110. package/lib/tr-grid-util/es6/Util.d.ts +6 -6
  111. package/lib/tr-grid-util/es6/formula/Engine.d.ts +5 -5
  112. package/lib/tr-grid-util/es6/formula/Formula.d.ts +3 -3
  113. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
  114. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +2 -2
  115. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +4 -4
  116. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
  117. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
  118. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +11 -11
  119. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +7 -7
  120. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +1 -1
  121. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -1
  122. package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
  123. package/lib/types/es6/CellSelection.d.ts +1 -1
  124. package/lib/types/es6/Checkbox.d.ts +4 -1
  125. package/lib/types/es6/ColumnGrouping.d.ts +1 -0
  126. package/lib/types/es6/ColumnSelection.d.ts +5 -1
  127. package/lib/types/es6/Core/data/DataView.d.ts +16 -7
  128. package/lib/types/es6/Core/data/Segment.d.ts +2 -0
  129. package/lib/types/es6/Core/data/WrappedView.d.ts +289 -0
  130. package/lib/types/es6/Core/grid/Core.d.ts +13 -0
  131. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +8 -0
  132. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +10 -1
  133. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +10 -1
  134. package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +4 -0
  135. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +1 -1
  136. package/lib/types/es6/FilterInput.d.ts +4 -2
  137. package/lib/types/es6/InCellEditing.d.ts +1 -1
  138. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +4 -1
  139. package/lib/types/es6/RealtimeGrid/Grid.d.ts +15 -8
  140. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +4 -1
  141. package/lib/types/es6/RowColoring.d.ts +2 -0
  142. package/lib/types/es6/RowDragging.d.ts +1 -3
  143. package/lib/types/es6/RowFiltering.d.ts +2 -0
  144. package/lib/types/es6/RowSegmenting.d.ts +1 -0
  145. package/lib/types/es6/RowSelection.d.ts +13 -9
  146. package/lib/types/es6/Zoom.d.ts +2 -1
  147. package/lib/types/es6/index.d.ts +3 -0
  148. package/lib/versions.json +19 -19
  149. package/lib/zoom/es6/Zoom.d.ts +2 -1
  150. package/lib/zoom/es6/Zoom.js +11 -4
  151. package/package.json +9 -2
@@ -7,13 +7,13 @@ declare class Table extends ElementWrapper {
7
7
 
8
8
  constructor(elem?: (Element|number), opt_colCount?: (number|any), opt_rowCount?: number);
9
9
 
10
- public getTableElement(): Element;
10
+ public getTableElement(): Element|null;
11
11
 
12
12
  public setCRWH(col: number, row: number, width: number, height: number): void;
13
13
 
14
14
  public init(options: any): void;
15
15
 
16
- public addColumns(opt_count?: number): (Element)[];
16
+ public addColumns(opt_count?: number): (Element)[]|null;
17
17
 
18
18
  public removeColumns(opt_count?: number): void;
19
19
 
@@ -33,21 +33,21 @@ declare class Table extends ElementWrapper {
33
33
 
34
34
  public getRowCount(): number;
35
35
 
36
- public getCell(c: number, r: number): Element;
36
+ public getCell(c: number, r: number): Element|null;
37
37
 
38
- public getCellsInColumn(c: number): (Element)[];
38
+ public getCellsInColumn(c: number): (Element)[]|null;
39
39
 
40
- public getCellsInRow(r: number): (Element)[];
40
+ public getCellsInRow(r: number): (Element)[]|null;
41
41
 
42
42
  public getAllCells(): (Element)[];
43
43
 
44
44
  public getAllRows(): (Element)[];
45
45
 
46
- public getRow(r: number): Element;
46
+ public getRow(r: number): Element|null;
47
47
 
48
- public spanBlock(c1: number, c2: number, r1: number, r2: number): Element;
48
+ public spanBlock(c1: number, c2: number, r1: number, r2: number): Element|null;
49
49
 
50
- public spanHorizontally(r: number, bool: boolean): Element;
50
+ public spanHorizontally(r: number, bool: boolean): Element|null;
51
51
 
52
52
  public setColMinWidths(val: number|string|(string|number)[], opt_at?: number): void;
53
53
 
@@ -87,7 +87,7 @@ declare class Table extends ElementWrapper {
87
87
 
88
88
  public addHeaderRows(opt_count?: number): (Element)[];
89
89
 
90
- public getHeaderCell(c: number, r: number): Element;
90
+ public getHeaderCell(c: number, r: number): Element|null;
91
91
 
92
92
  public getAllHeaderCells(): (Element)[];
93
93
 
@@ -95,7 +95,7 @@ declare class Table extends ElementWrapper {
95
95
 
96
96
  public addFooterRows(opt_count?: number): (Element)[];
97
97
 
98
- public getFooterCell(c: number, r: number): Element;
98
+ public getFooterCell(c: number, r: number): Element|null;
99
99
 
100
100
  public getAllFooterCells(): (Element)[];
101
101
 
@@ -113,11 +113,11 @@ declare class Table extends ElementWrapper {
113
113
 
114
114
  public cloak(tblElem: Element): void;
115
115
 
116
- public getBody(): SubTable;
116
+ public getBody(): SubTable|null;
117
117
 
118
- public getHeader(): SubTable;
118
+ public getHeader(): SubTable|null;
119
119
 
120
- public getFooter(): SubTable;
120
+ public getFooter(): SubTable|null;
121
121
 
122
122
  }
123
123
 
@@ -2,11 +2,11 @@ import {Dom} from './Dom.js';
2
2
 
3
3
  declare namespace TextHighlighter {
4
4
 
5
- const invalidChars: RegExp;
5
+ const invalidChars: RegExp|null;
6
6
 
7
- const spaces: RegExp;
7
+ const spaces: RegExp|null;
8
8
 
9
- const spaceTrimer: RegExp;
9
+ const spaceTrimer: RegExp|null;
10
10
 
11
11
  const defaultTag: string;
12
12
 
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
- declare const TickCodes: { [key: string]: number };
3
+ declare const TickCodes: { [key: string]: number }|null;
4
4
 
5
- declare const TickFields: { [key: string]: number };
5
+ declare const TickFields: { [key: string]: number }|null;
6
6
 
7
7
  export default TickCodes;
8
8
  export {TickCodes, TickFields};
@@ -16,7 +16,7 @@ declare class TouchProxy extends EventDispatcher {
16
16
 
17
17
  public static readonly passive: EventListenerOptions;
18
18
 
19
- public getElement(): Element;
19
+ public getElement(): Element|null;
20
20
 
21
21
  public setElement(elem?: Element): void;
22
22
 
@@ -18,19 +18,19 @@ declare function extendObject(obj: any, extender?: any, limiters?: (string)[]):
18
18
 
19
19
  declare function cloneObject(obj: any, limiters?: (string)[]): any;
20
20
 
21
- declare function arrayToObject(data?: any[], fields?: (string)[]): any|null;
21
+ declare function arrayToObject(data?: any[], fields?: (string)[]): any|null|null;
22
22
 
23
23
  declare function extendProperty(obj: any, extender: any, propName: string): void;
24
24
 
25
- declare function extendArrayProperty(obj: any, propName: string, ary: any): any[];
25
+ declare function extendArrayProperty(obj: any, propName: string, ary: any): any[]|null;
26
26
 
27
- declare function parseCondition(expression: string|((...params: any[]) => any)): ((...params: any[]) => any);
27
+ declare function parseCondition(expression: string|((...params: any[]) => any)): ((...params: any[]) => any)|null;
28
28
 
29
29
  declare function prettifyCss(css: string|any[]): string;
30
30
 
31
- declare function getShadowRoot(elem: Element): DocumentFragment;
31
+ declare function getShadowRoot(elem: Element): DocumentFragment|null;
32
32
 
33
- declare function injectCss(cssStr: string, targetContext?: Element): Element;
33
+ declare function injectCss(cssStr: string, targetContext?: Element): Element|null;
34
34
 
35
35
  declare function isIE(): boolean;
36
36
 
@@ -38,7 +38,7 @@ declare function isMac(): boolean;
38
38
 
39
39
  declare function isTouchDevice(): boolean;
40
40
 
41
- declare function nestedObjectToArray(obj: any, ary?: any[]): any[];
41
+ declare function nestedObjectToArray(obj: any, ary?: any[]): any[]|null;
42
42
 
43
43
  declare function rgb2Hex(rgbCode: string): string;
44
44
 
@@ -22,17 +22,17 @@ declare class Engine extends EventDispatcher {
22
22
 
23
23
  public addFormula(userInput: Formula|string): Formula;
24
24
 
25
- public removeFormula(ref?: Formula|string|number): Formula;
25
+ public removeFormula(ref?: Formula|string|number): Formula|null;
26
26
 
27
27
  public removeAllFormulas(): void;
28
28
 
29
- public getFormula(opt_ref: string|number): Formula;
29
+ public getFormula(opt_ref: string|number): Formula|null;
30
30
 
31
- public getFormulaByExpression(exp: string): Formula;
31
+ public getFormulaByExpression(exp: string): Formula|null;
32
32
 
33
- public getAllFormulas(): (Formula)[];
33
+ public getAllFormulas(): (Formula)[]|null;
34
34
 
35
- public getAllFormulaReferences(): { [key: string]: string };
35
+ public getAllFormulaReferences(): { [key: string]: string }|null;
36
36
 
37
37
  public getFormulaCount(): number;
38
38
 
@@ -6,15 +6,15 @@ declare class Formula extends EventDispatcher {
6
6
 
7
7
  constructor(expression?: string, context?: any);
8
8
 
9
- public static readonly _isBoundFormula: { [key: string]: boolean };
9
+ public static readonly _isBoundFormula: { [key: string]: boolean }|null;
10
10
 
11
11
  public dispose(): void;
12
12
 
13
13
  public calculate(rowData: { [key: string]: any }): any;
14
14
 
15
- public getFunction(): ((...params: any[]) => any);
15
+ public getFunction(): ((...params: any[]) => any)|null;
16
16
 
17
- public getFieldNames(): (string)[];
17
+ public getFieldNames(): (string)[]|null;
18
18
 
19
19
  public getReference(): string;
20
20
 
@@ -9,7 +9,7 @@ declare namespace RealtimeService {
9
9
 
10
10
  function setQuote2(quotes2: any): void;
11
11
 
12
- function getResolvedFieldName(fid: string): string|null;
12
+ function getResolvedFieldName(fid: string): string|null|null;
13
13
 
14
14
  function resolveFieldId(formula: Formula, fid: string, obj?: any): Promise<any>;
15
15
 
@@ -14,9 +14,9 @@ declare class CollectionDict {
14
14
 
15
15
  public removeAllItems(): boolean;
16
16
 
17
- public getItems(key: string): any[];
17
+ public getItems(key: string): any[]|null;
18
18
 
19
- public getAllItems(): any[];
19
+ public getAllItems(): any[]|null;
20
20
 
21
21
  public getItemCount(): number;
22
22
 
@@ -28,7 +28,7 @@ declare class DataGenerator {
28
28
 
29
29
  public randMember(set: any[]): any;
30
30
 
31
- public randDate(min?: (number|any), max?: (number|any)): Date;
31
+ public randDate(min?: (number|any), max?: (number|any)): Date|null;
32
32
 
33
33
  public randString(min?: number, max?: number): string;
34
34
 
@@ -52,7 +52,7 @@ declare class DataGenerator {
52
52
 
53
53
  public static randMember(set: any[], seed?: number): any;
54
54
 
55
- public static randDate(min?: (number|any), max?: (number|any), seed?: number): Date;
55
+ public static randDate(min?: (number|any), max?: (number|any), seed?: number): Date|null;
56
56
 
57
57
  public static randString(min?: number, max?: number, subType?: string, seed?: number): string;
58
58
 
@@ -76,11 +76,11 @@ declare function randBoolean(seed?: number): boolean;
76
76
 
77
77
  declare function randMember(set: any[], seed?: number): any;
78
78
 
79
- declare function randDate(min?: (number|any), max?: (number|any), seed?: number): Date;
79
+ declare function randDate(min?: (number|any), max?: (number|any), seed?: number): Date|null;
80
80
 
81
81
  declare function randString(min?: number, max?: number, seed?: number): string;
82
82
 
83
- declare function toRecords(data2D: (any[])[], fields?: (string)[]): (any)[];
83
+ declare function toRecords(data2D: (any[])[], fields?: (string)[]): (any)[]|null;
84
84
 
85
85
  declare function getSeed(): number;
86
86
 
@@ -10,7 +10,7 @@ declare class MockArchive {
10
10
 
11
11
  public get(key: string): any;
12
12
 
13
- public getAllKeys(): (string)[];
13
+ public getAllKeys(): (string)[]|null;
14
14
 
15
15
  public save(): void;
16
16
 
@@ -7,15 +7,15 @@ declare class MockJET {
7
7
 
8
8
  constructor();
9
9
 
10
- public init(opt_obj?: any): MockJET;
10
+ public init(opt_obj?: any): MockJET|null;
11
11
 
12
- public onLoad(handler: ((...params: any[]) => any)): MockJET;
12
+ public onLoad(handler: ((...params: any[]) => any)): MockJET|null;
13
13
 
14
- public navigate(obj: any): MockJET;
14
+ public navigate(obj: any): MockJET|null;
15
15
 
16
16
  public appHit(name: string, type: string, property: string): void;
17
17
 
18
- public getUserInfo(): Promise<any>;
18
+ public getUserInfo(): Promise<any>|null;
19
19
 
20
20
  public contextChange(contextAry: any[]): void;
21
21
 
@@ -4,7 +4,7 @@ declare class MockQuotes {
4
4
 
5
5
  constructor();
6
6
 
7
- public create(opt_id?: string): MockSubscription;
7
+ public create(opt_id?: string): MockSubscription|null;
8
8
 
9
9
  }
10
10
 
@@ -12,25 +12,25 @@ declare class MockSubscription {
12
12
 
13
13
  constructor(opt_id?: string);
14
14
 
15
- public create(opt_id?: string): MockSubscription;
15
+ public create(opt_id?: string): MockSubscription|null;
16
16
 
17
- public formattedFields(fields: (string)[]): MockSubscription;
17
+ public formattedFields(fields: (string)[]): MockSubscription|null;
18
18
 
19
- public rawFields(fields: (string)[]): MockSubscription;
19
+ public rawFields(fields: (string)[]): MockSubscription|null;
20
20
 
21
- public chain(ric: string): MockSubscription;
21
+ public chain(ric: string): MockSubscription|null;
22
22
 
23
- public rics(ric: string|(string)[]): MockSubscription;
23
+ public rics(ric: string|(string)[]): MockSubscription|null;
24
24
 
25
- public start(): MockSubscription;
25
+ public start(): MockSubscription|null;
26
26
 
27
- public stop(): MockSubscription;
27
+ public stop(): MockSubscription|null;
28
28
 
29
- public onNewRow(handler: ((...params: any[]) => any)): MockSubscription;
29
+ public onNewRow(handler: ((...params: any[]) => any)): MockSubscription|null;
30
30
 
31
- public onUpdate(handler: ((...params: any[]) => any)): MockSubscription;
31
+ public onUpdate(handler: ((...params: any[]) => any)): MockSubscription|null;
32
32
 
33
- public onRemoveRow(handler: ((...params: any[]) => any)): MockSubscription;
33
+ public onRemoveRow(handler: ((...params: any[]) => any)): MockSubscription|null;
34
34
 
35
35
  }
36
36
 
@@ -5,7 +5,7 @@ declare class MockQuotes2 {
5
5
 
6
6
  constructor();
7
7
 
8
- public create(options?: any): MockSubscriptions;
8
+ public create(options?: any): MockSubscriptions|null;
9
9
 
10
10
  public isSkipHeaderSupported(): boolean;
11
11
 
@@ -15,7 +15,7 @@ declare class MockSubscriptions {
15
15
 
16
16
  constructor(options?: any);
17
17
 
18
- public create(options?: any): MockSubscriptions;
18
+ public create(options?: any): MockSubscriptions|null;
19
19
 
20
20
  public setUpdateInterval(min?: number, max?: number): void;
21
21
 
@@ -23,9 +23,9 @@ declare class MockSubscriptions {
23
23
 
24
24
  public setSeed(seed: number): void;
25
25
 
26
- public addRic(ric: string, subId?: string): string|null;
26
+ public addRic(ric: string, subId?: string): string|null|null;
27
27
 
28
- public addChain(ric: string, subId?: string): string|null;
28
+ public addChain(ric: string, subId?: string): string|null|null;
29
29
 
30
30
  public addFields(fields: string|(string)[]): void;
31
31
 
@@ -57,15 +57,15 @@ declare class MockSubscriptions {
57
57
 
58
58
  public getRic(subId: string): string;
59
59
 
60
- public getAllFields(): { [key: string]: boolean };
60
+ public getAllFields(): { [key: string]: boolean }|null;
61
61
 
62
62
  public hasField(field: string): boolean;
63
63
 
64
- public filter(start: number, count: number): MockSubscriptions;
64
+ public filter(start: number, count: number): MockSubscriptions|null;
65
65
 
66
66
  public static simpleDigest(str: string): number;
67
67
 
68
- public onFeedStatusChanged(feedNames: (string)[], handler: ((...params: any[]) => any)): MockSubscriptions;
68
+ public onFeedStatusChanged(feedNames: (string)[], handler: ((...params: any[]) => any)): MockSubscriptions|null;
69
69
 
70
70
  }
71
71
 
@@ -2,7 +2,7 @@ import { DataGrid, setInvalidFields } from "./mockDataAPI.js";
2
2
  import { MockQuotes2 } from "./MockQuotes2.js";
3
3
  import { cloneObject } from "../Util.js";
4
4
 
5
- declare function init(opt_obj?: any): MockRTK;
5
+ declare function init(opt_obj?: any): MockRTK|null;
6
6
 
7
7
  export default MockRTK;
8
8
  export { MockRTK };
@@ -6,6 +6,6 @@ declare namespace DataGrid {
6
6
 
7
7
  declare function setInvalidFields(fields: (string)[]|string): void;
8
8
 
9
- declare function mockDataAPI(dataType: string): Promise<any>;
9
+ declare function mockDataAPI(dataType: string): Promise<any>|null;
10
10
 
11
11
  export { mockDataAPI, DataGrid, setInvalidFields };
@@ -0,0 +1,223 @@
1
+ export declare namespace JSXInterface {
2
+ interface ControlHTMLAttributes<T> extends HTMLAttributes<T> {
3
+ accept?: string;
4
+ alt?: string;
5
+ autoComplete?: string;
6
+ autocomplete?: string;
7
+ autoFocus?: boolean;
8
+ autofocus?: boolean | string;
9
+ capture?: string;
10
+ checked?: boolean;
11
+ crossOrigin?: string;
12
+ crossorigin?: string;
13
+ disabled?: boolean;
14
+ form?: string;
15
+ formAction?: string;
16
+ formaction?: string;
17
+ formEncType?: string;
18
+ formenctype?: string;
19
+ formMethod?: string;
20
+ formmethod?: string;
21
+ formNoValidate?: boolean;
22
+ formnovalidate?: boolean;
23
+ formTarget?: string;
24
+ formtarget?: string;
25
+ height?: number | string;
26
+ list?: string;
27
+ max?: number | string;
28
+ maxLength?: number;
29
+ maxlength?: number | string;
30
+ min?: number | string;
31
+ minLength?: number;
32
+ minlength?: number | string;
33
+ multiple?: boolean;
34
+ name?: string;
35
+ pattern?: string;
36
+ placeholder?: string;
37
+ readOnly?: boolean;
38
+ readonly?: boolean | string;
39
+ required?: boolean;
40
+ size?: number;
41
+ src?: string;
42
+ step?: number | string;
43
+ type?: string;
44
+ value?: string | string[] | number;
45
+ width?: number | string;
46
+ }
47
+ interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
48
+ innerHTML?: string;
49
+ key?: string | number;
50
+ accessKey?: string;
51
+ class?: string | {
52
+ [className: string]: boolean;
53
+ };
54
+ contentEditable?: boolean | string;
55
+ contenteditable?: boolean | string;
56
+ contextMenu?: string;
57
+ contextmenu?: string;
58
+ dir?: string;
59
+ draggable?: boolean;
60
+ hidden?: boolean;
61
+ id?: string;
62
+ lang?: string;
63
+ spellCheck?: boolean;
64
+ spellcheck?: boolean | string;
65
+ style?: {
66
+ [key: string]: string | undefined;
67
+ };
68
+ tabIndex?: number;
69
+ tabindex?: number | string;
70
+ title?: string;
71
+ inputMode?: string;
72
+ inputmode?: string;
73
+ is?: string;
74
+ radioGroup?: string;
75
+ radiogroup?: string;
76
+ part?: string;
77
+ role?: string;
78
+ about?: string;
79
+ datatype?: string;
80
+ inlist?: any;
81
+ prefix?: string;
82
+ property?: string;
83
+ resource?: string;
84
+ typeof?: string;
85
+ vocab?: string;
86
+ autoCapitalize?: string;
87
+ autocapitalize?: string;
88
+ autoCorrect?: string;
89
+ autocorrect?: string;
90
+ autoSave?: string;
91
+ autosave?: string;
92
+ color?: string;
93
+ itemProp?: string;
94
+ itemprop?: string;
95
+ itemScope?: boolean;
96
+ itemscope?: boolean;
97
+ itemType?: string;
98
+ itemtype?: string;
99
+ itemID?: string;
100
+ itemid?: string;
101
+ itemRef?: string;
102
+ itemref?: string;
103
+ results?: number;
104
+ security?: string;
105
+ unselectable?: boolean;
106
+ }
107
+ interface DOMAttributes<T = Element> {
108
+ ref?: any;
109
+ slot?: string;
110
+ children?: any;
111
+ onCopy?: (event: ClipboardEvent) => void;
112
+ onCopyCapture?: (event: ClipboardEvent) => void;
113
+ onCut?: (event: ClipboardEvent) => void;
114
+ onCutCapture?: (event: ClipboardEvent) => void;
115
+ onPaste?: (event: ClipboardEvent) => void;
116
+ onPasteCapture?: (event: ClipboardEvent) => void;
117
+ onCompositionEnd?: (event: CompositionEvent) => void;
118
+ onCompositionEndCapture?: (event: CompositionEvent) => void;
119
+ onCompositionStart?: (event: CompositionEvent) => void;
120
+ onCompositionStartCapture?: (event: CompositionEvent) => void;
121
+ onCompositionUpdate?: (event: CompositionEvent) => void;
122
+ onCompositionUpdateCapture?: (event: CompositionEvent) => void;
123
+ onFocus?: (event: FocusEvent) => void;
124
+ onFocusCapture?: (event: FocusEvent) => void;
125
+ onBlur?: (event: FocusEvent) => void;
126
+ onBlurCapture?: (event: FocusEvent) => void;
127
+ onChange?: (event: Event) => void;
128
+ onChangeCapture?: (event: Event) => void;
129
+ onInput?: (event: Event) => void;
130
+ onInputCapture?: (event: Event) => void;
131
+ onReset?: (event: Event) => void;
132
+ onResetCapture?: (event: Event) => void;
133
+ onSubmit?: (event: Event) => void;
134
+ onSubmitCapture?: (event: Event) => void;
135
+ onInvalid?: (event: Event) => void;
136
+ onInvalidCapture?: (event: Event) => void;
137
+ onLoad?: (event: Event) => void;
138
+ onLoadCapture?: (event: Event) => void;
139
+ onError?: (event: Event) => void;
140
+ onErrorCapture?: (event: Event) => void;
141
+ onKeyDown?: (event: KeyboardEvent) => void;
142
+ onKeyDownCapture?: (event: KeyboardEvent) => void;
143
+ onKeyPress?: (event: KeyboardEvent) => void;
144
+ onKeyPressCapture?: (event: KeyboardEvent) => void;
145
+ onKeyUp?: (event: KeyboardEvent) => void;
146
+ onKeyUpCapture?: (event: KeyboardEvent) => void;
147
+ onAuxClick?: (event: MouseEvent) => void;
148
+ onClick?: (event: MouseEvent) => void;
149
+ onClickCapture?: (event: MouseEvent) => void;
150
+ onContextMenu?: (event: MouseEvent) => void;
151
+ onContextMenuCapture?: (event: MouseEvent) => void;
152
+ onDblClick?: (event: MouseEvent) => void;
153
+ onDblClickCapture?: (event: MouseEvent) => void;
154
+ onDrag?: (event: DragEvent) => void;
155
+ onDragCapture?: (event: DragEvent) => void;
156
+ onDragEnd?: (event: DragEvent) => void;
157
+ onDragEndCapture?: (event: DragEvent) => void;
158
+ onDragEnter?: (event: DragEvent) => void;
159
+ onDragEnterCapture?: (event: DragEvent) => void;
160
+ onDragExit?: (event: DragEvent) => void;
161
+ onDragExitCapture?: (event: DragEvent) => void;
162
+ onDragLeave?: (event: DragEvent) => void;
163
+ onDragLeaveCapture?: (event: DragEvent) => void;
164
+ onDragOver?: (event: DragEvent) => void;
165
+ onDragOverCapture?: (event: DragEvent) => void;
166
+ onDragStart?: (event: DragEvent) => void;
167
+ onDragStartCapture?: (event: DragEvent) => void;
168
+ onDrop?: (event: DragEvent) => void;
169
+ onDropCapture?: (event: DragEvent) => void;
170
+ onMouseDown?: (event: MouseEvent) => void;
171
+ onMouseDownCapture?: (event: MouseEvent) => void;
172
+ onMouseEnter?: (event: MouseEvent) => void;
173
+ onMouseLeave?: (event: MouseEvent) => void;
174
+ onMouseMove?: (event: MouseEvent) => void;
175
+ onMouseMoveCapture?: (event: MouseEvent) => void;
176
+ onMouseOut?: (event: MouseEvent) => void;
177
+ onMouseOutCapture?: (event: MouseEvent) => void;
178
+ onMouseOver?: (event: MouseEvent) => void;
179
+ onMouseOverCapture?: (event: MouseEvent) => void;
180
+ onMouseUp?: (event: MouseEvent) => void;
181
+ onMouseUpCapture?: (event: MouseEvent) => void;
182
+ onTouchCancel?: (event: TouchEvent) => void;
183
+ onTouchCancelCapture?: (event: TouchEvent) => void;
184
+ onTouchEnd?: (event: TouchEvent) => void;
185
+ onTouchEndCapture?: (event: TouchEvent) => void;
186
+ onTouchMove?: (event: TouchEvent) => void;
187
+ onTouchMoveCapture?: (event: TouchEvent) => void;
188
+ onTouchStart?: (event: TouchEvent) => void;
189
+ onTouchStartCapture?: (event: TouchEvent) => void;
190
+ onPointerDown?: (event: PointerEvent) => void;
191
+ onPointerDownCapture?: (event: PointerEvent) => void;
192
+ onPointerMove?: (event: PointerEvent) => void;
193
+ onPointerMoveCapture?: (event: PointerEvent) => void;
194
+ onPointerUp?: (event: PointerEvent) => void;
195
+ onPointerUpCapture?: (event: PointerEvent) => void;
196
+ onPointerCancel?: (event: PointerEvent) => void;
197
+ onPointerCancelCapture?: (event: PointerEvent) => void;
198
+ onPointerEnter?: (event: PointerEvent) => void;
199
+ onPointerEnterCapture?: (event: PointerEvent) => void;
200
+ onPointerLeave?: (event: PointerEvent) => void;
201
+ onPointerLeaveCapture?: (event: PointerEvent) => void;
202
+ onPointerOver?: (event: PointerEvent) => void;
203
+ onPointerOverCapture?: (event: PointerEvent) => void;
204
+ onPointerOut?: (event: PointerEvent) => void;
205
+ onPointerOutCapture?: (event: PointerEvent) => void;
206
+ onGotPointerCapture?: (event: PointerEvent) => void;
207
+ onGotPointerCaptureCapture?: (event: PointerEvent) => void;
208
+ onLostPointerCapture?: (event: PointerEvent) => void;
209
+ onLostPointerCaptureCapture?: (event: PointerEvent) => void;
210
+ onScroll?: (event: UIEvent) => void;
211
+ onScrollCapture?: (event: UIEvent) => void;
212
+ onWheel?: (event: WheelEvent) => void;
213
+ onWheelCapture?: (event: WheelEvent) => void;
214
+ onAnimationStart?: (event: AnimationEvent) => void;
215
+ onAnimationStartCapture?: (event: AnimationEvent) => void;
216
+ onAnimationEnd?: (event: AnimationEvent) => void;
217
+ onAnimationEndCapture?: (event: AnimationEvent) => void;
218
+ onAnimationIteration?: (event: AnimationEvent) => void;
219
+ onAnimationIterationCapture?: (event: AnimationEvent) => void;
220
+ onTransitionEnd?: (event: TransitionEvent) => void;
221
+ onTransitionEndCapture?: (event: TransitionEvent) => void;
222
+ }
223
+ }
@@ -53,7 +53,7 @@ declare class CellSelectionPlugin extends GridPlugin {
53
53
 
54
54
  public getAnchorInfo(): any;
55
55
 
56
- public getSelectedCells(): (any)[];
56
+ public getSelectedCells(): (any[])[];
57
57
 
58
58
  public disableSelection(opt_disable?: boolean): void;
59
59
 
@@ -12,7 +12,8 @@ declare namespace CheckboxPlugin {
12
12
  checkboxCreated?: ((...params: any[]) => any),
13
13
  checkboxBinding?: ((...params: any[]) => any),
14
14
  clicked?: ((...params: any[]) => any),
15
- width?: number
15
+ width?: number,
16
+ topCheckboxHandler?: boolean
16
17
  };
17
18
 
18
19
  type ColumnOptions = {
@@ -51,6 +52,8 @@ declare class CheckboxPlugin extends GridPlugin {
51
52
 
52
53
  public setAllCheckStates(checked: boolean): void;
53
54
 
55
+ public selectAllPages(checked?: boolean): void;
56
+
54
57
  public disableCheckbox(rowRef: number|string, disabled: boolean): void;
55
58
 
56
59
  public enableCheckbox(rowRef: number|string): void;
@@ -1,5 +1,6 @@
1
1
  import { Ext } from "../../tr-grid-util/es6/Ext.js";
2
2
  import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
3
+ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
3
4
 
4
5
  declare namespace ColumnGroupingPlugin {
5
6
 
@@ -1,13 +1,17 @@
1
1
  import { Ext } from "../../tr-grid-util/es6/Ext.js";
2
2
  import { Dom } from "../../tr-grid-util/es6/Dom.js";
3
3
  import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
4
+ import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
5
+ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
4
6
 
5
7
  declare namespace ColumnSelectionPlugin {
6
8
 
7
9
  type Options = {
8
10
  singleSelection?: boolean,
9
11
  clickToggle?: boolean,
10
- selectionChanged?: ((...params: any[]) => any)
12
+ selectionChanged?: ((...params: any[]) => any),
13
+ menuClicked?: ((...params: any[]) => any),
14
+ menuPosition?: string
11
15
  };
12
16
 
13
17
  type ColumnOptions = {