-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeScriptified basic_table. (#2428)
* TypeScriptify custom_item_action. * TypeScriptify default_item_action. * Created action_types.ts. * Added missing props in DefaultItemAction. * TypeScriptify expanded_item_actions. * TypeScriptify CollapsedItemActions. * TypeScriptify LoadingTableBody. * TypeScriptify PaginationBar. * TypeScriptify BasicTable. * Removed anys. * Removed more anys. * Removed any in item and itemId. * TypeScriptify EuiInMemoryTable. * Fixed bug in PropType generation. * Clean up. * Used Omit. * Thread generics throughout EuiBasicTable Make it possible to type-check the props of EuiBasicTable and EuiInMemoryTable more effectively by making their props generic, and using the generic parameter throughout the tables' types. * Tweaks * More tweaks * Even more tweaks * Added responsive prop to EuiInMemoryTable. * any -> Event. Co-Authored-By: Rory Hunter <pugnascotia@users.noreply.github.com> * Fixed selectable test failure. * Renamed prop interfaces. * Some typescript updates * ts->proptypes test for direct-usage literal values * Update: State -> CollapsedItemActionsState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * Update: State -> CollapsedItemActionsState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * Update State -> CustomItemActionState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * Update State -> CustomItemActionState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * clean up types in in_memory_table * Fixed ExpandedItemActions snapshot. Because it has some props that don't exist anymore. * Remove more anys. * Updated i18ntokens.json. * TypeScriptify custom_item_action. * TypeScriptify default_item_action. * Created action_types.ts. * Added missing props in DefaultItemAction. * TypeScriptify expanded_item_actions. * TypeScriptify CollapsedItemActions. * TypeScriptify LoadingTableBody. * TypeScriptify PaginationBar. * TypeScriptify BasicTable. * Removed anys. * Removed more anys. * Removed any in item and itemId. * TypeScriptify EuiInMemoryTable. * Fixed bug in PropType generation. * Clean up. * Used Omit. * Thread generics throughout EuiBasicTable Make it possible to type-check the props of EuiBasicTable and EuiInMemoryTable more effectively by making their props generic, and using the generic parameter throughout the tables' types. * Tweaks * More tweaks * Even more tweaks * Added responsive prop to EuiInMemoryTable. * any -> Event. Co-Authored-By: Rory Hunter <pugnascotia@users.noreply.github.com> * Fixed selectable test failure. * Renamed prop interfaces. * Some typescript updates * ts->proptypes test for direct-usage literal values * Update: State -> CollapsedItemActionsState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * Update: State -> CollapsedItemActionsState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * Update State -> CustomItemActionState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * Update State -> CustomItemActionState Co-Authored-By: Chandler Prall <chandler.prall@gmail.com> * clean up types in in_memory_table * Fixed ExpandedItemActions snapshot. Because it has some props that don't exist anymore. * Remove more anys. * more types * guarantee the page argument in table callbacks if pagination is provided * rebased against master * export EuiBasicTableColumn type * Added TD attributes to field and computed column types * Accept string | number for EuiTableSortMobile's key * changelog
- Loading branch information
1 parent
0ab717d
commit 04662e8
Showing
44 changed files
with
2,056 additions
and
1,384 deletions.
There are no files selected for viewing
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
File renamed without changes.
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
18 changes: 18 additions & 0 deletions
18
...pshots__/default_item_action.test.js.snap → ...shots__/default_item_action.test.tsx.snap
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.