Commit 588cb8f
authored
feat: De-globalize JSAPI in IrisGrid package (#1262)
- De-globalize JSAPI in the IrisGrid package.
- De-globalize JSAPI in `DateUtils` and `TableUtils` in the`jsapi-utils`
package.
- Update `dashboard-core-plugins`, `code-studio`, embed-grid` to match
the IrisGrid package changes.
BREAKING CHANGE:
- `DateUtils` static methods `makeDateWrapper`, `getNextDate `,
`parseDateRange` now require the JSAPI object as the first argument.
- `IrisGridUtils` static methods `dehydrateIrisGridState`,
`hydrateIrisGridState`, `hydrateQuickFilters`,
`dehydrateAdvancedFilters`, `hydrateAdvancedFilters`,
`dehydrateAdvancedFilterOptions`, `hydrateAdvancedFilterOptions`,
`dehydratePendingDataMap`, `hydratePendingDataMap`, `dehydrateValue`,
`hydrateValue`, `dehydrateDateTime`, `hydrateDateTime`, `hydrateLong`,
`hydrateSort`, `applyTableSettings`, `getFiltersFromInputFilters`,
`rangeSetFromRanges` converted to instance methods. Consumers now need
to create an `IrisGridUtils` instance and pass the JSAPI object to the
constructor.
- `TableUtils` static methods `makeQuickFilter`,
`makeQuickFilterFromComponent`, `makeQuickNumberFilter`,
`makeQuickTextFilter`, `makeQuickBooleanFilter`, `makeQuickDateFilter`,
`makeQuickDateFilterWithOperation`, `makeQuickCharFilter`,
`makeAdvancedFilter`, `makeAdvancedValueFilter`, `makeFilterValue`,
`makeFilterRawValue`, `makeValue`, `makeSelectValueFilter` converted to
instance methods. Consumers now need to create a `TableUtils` instance
and pass the JSAPI object to the constructor.
- `IrisGridTableModel`, `IrisGridTableModelTemplate`,
`IrisGridProxyModel` constructors require the JSAPI object in the first
argument.
- `IrisGridTestUtils.makeModel`, `IrisGridModelFactory.makeModel` now
require the JSAPI object in the first argument.
- `IrisGridContextMenuHandler` constructor requires the JSAPI object in
the second argument.
- `IrisGridPanel` requires a new `makeApi` prop, a function that
resolves with the JSAPI instance.
- `CrossColumnSearch.createSearchFilter` requires the JSAPI object
argument.
- Components `AdvancedFilterCreatorSelectValue`,
`AdvancedFilterCreatorSelectValueList`, `ChartBuilder`, `GotoRow`,
`IrisGrid`, `IrisGridModelUpdater`, `IrisGridPartitionSelector`,
`PartitionSelectorSearch`, `TableCSVExporter`, `TableSaver`,
`TreeTableViewportUpdater`, `RowFormatEditor`, `ColumnFormatEditor`,
`ConditionEditor` now require the JSAPI object passed in the new prop
`dh`.
- Components `AdvancedFilterCreator`, `AdvancedFilterCreatorFilterItem`
require the `TableUtils` instance pass in the new prop `tableUtils`.
- `ConditionalFormattingUtils` static methods `getFormatColumns`,
`isDateConditionValid` require the JSAPI object in the first argument.
- `ConditionalFormattingAPIUtils` static method `makeRowFormatColumn`
requires the JSAPI object in the first argument.1 parent 87fa2ef commit 588cb8f
74 files changed
Lines changed: 2254 additions & 2027 deletions
File tree
- packages
- code-studio/src
- main
- styleguide
- dashboard-core-plugins/src
- panels
- embed-grid/src
- iris-grid
- src
- mousehandlers
- sidebar
- aggregations
- conditional-formatting
- visibility-ordering-builder
- sortable-tree
- jsapi-components/src
- jsapi-utils/src
- tests/table.spec.ts-snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
| 758 | + | |
| 759 | + | |
759 | 760 | | |
760 | 761 | | |
761 | 762 | | |
| |||
767 | 768 | | |
768 | 769 | | |
769 | 770 | | |
770 | | - | |
| 771 | + | |
771 | 772 | | |
772 | 773 | | |
773 | 774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
35 | 26 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
51 | 42 | | |
52 | 43 | | |
53 | 44 | | |
| |||
62 | 53 | | |
63 | 54 | | |
64 | 55 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 56 | + | |
70 | 57 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
74 | 61 | | |
75 | 62 | | |
76 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| |||
0 commit comments