-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
74 changed files
with
2,254 additions
and
2,027 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.