-
Notifications
You must be signed in to change notification settings - Fork 32
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 utils, formatters, linker (#1278)
- De-globalize JSAPI in the `jsapi-utils` package. Update all dependent packages. BREAKING CHANGE: - Class `Formatter` requires the JSAPI instance as the first argument. - Classes `DateTimeColumnFormatter`, `DecimalColumnFormatter`, `IntegerColumnFormatter`, `TableColumnFormatter`: static method `isValid` and constructor require the JSAPI instance in the first argument. - Component `Chart` requires the JSAPI instance passed in the new prop `dh`. - `WidgetUtils`: methods `createChartModel`, `createGridModel` methods require the JSAPI instance passed in the first argument. - Components `DateTimeOptions`, `TableInput`, `useViewportData` have to be wrapped in `ApiContext.Provider` passing the JSAPI instance. - `SettingsUtils`: methods `isValidFormat` and `isFormatRuleValidForSave` require the JSAPI instance passed in the first argument. - `SessionUtils`: methods `createConnection`, `createCoreClient` require the JSAPI instance passed in the first argument. - `TableUtils` static methods `applyCustomColumns`, `applyFilter`, `applyNeverFilter`, `applySort` converted to instance methods. - Components `DropdownFilterPanel`, `Linker` now get the JSAPI instance from redux store. - `DecimalFormatContextMenu.getOptions`, `IntegerFormatContextMenu.getOptions` now require the JSAPI instance in the first argument.
- Loading branch information
Showing
54 changed files
with
426 additions
and
242 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
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.