Repository navigation
Grids - Remove 'm_' prefixes - AI Column, Toast & misc #35432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/devextreme/js/__internal/grids/data_grid/module_not_extended/toast.ts
This file contains hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...ers/m_ai_prompt_editor_view_controller.ts → ...llers/ai_prompt_editor_view_controller.ts
This file contains hidden or 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
8 changes: 4 additions & 4 deletions
8
packages/devextreme/js/__internal/grids/grid_core/ai_column/index.ts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| export { AIColumnController } from './controllers/m_ai_column_controller'; | ||
| export { AIPromptEditorViewController } from './controllers/m_ai_prompt_editor_view_controller'; | ||
| export { columnHeadersViewExtender } from './views/m_ai_column_view'; | ||
| export { AIPromptEditorView } from './views/m_ai_prompt_editor_view'; | ||
| export { AIColumnController } from './controllers/ai_column_controller'; | ||
| export { AIPromptEditorViewController } from './controllers/ai_prompt_editor_view_controller'; | ||
| export { columnHeadersViewExtender } from './views/ai_column_view'; | ||
| export { AIPromptEditorView } from './views/ai_prompt_editor_view'; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...xtreme/js/__internal/grids/grid_core/filter_sync/extenders/filter_sync_data_controller.ts
This file contains hidden or 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 hidden or 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
50 changes: 50 additions & 0 deletions
50
packages/devextreme/js/__internal/grids/grid_core/focus/focus_utils.ts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import dateSerialization from '@js/core/utils/date_serialization'; | ||
| import { isDate } from '@js/core/utils/type'; | ||
| import type { OrderingDescriptor } from '@js/data/data.types'; | ||
|
|
||
| import type { RawItemData } from '../data_source_adapter/types'; | ||
|
|
||
| type ValueGetter = (data: RawItemData) => unknown; | ||
|
|
||
| interface SortFilterValueOptions { | ||
| isRemoteFiltering: boolean; | ||
| dateSerializationFormat: string | undefined; | ||
| getSelector: (selector: string) => ValueGetter | undefined; | ||
| } | ||
|
|
||
| interface SortFilterValue { | ||
| getter: ValueGetter; | ||
| rawValue: unknown; | ||
| safeValue: unknown; | ||
| } | ||
|
|
||
| // TODO Vinogradov: Move it to ts and cover with unit tests. | ||
| const getSortFilterValue = ( | ||
| sortInfo: OrderingDescriptor<RawItemData>, | ||
| rowData: RawItemData, | ||
| { | ||
| isRemoteFiltering, | ||
| dateSerializationFormat, | ||
| getSelector, | ||
| }: SortFilterValueOptions, | ||
| ): SortFilterValue => { | ||
| const { selector } = sortInfo; | ||
| const getter: ValueGetter = typeof selector === 'function' | ||
| ? selector | ||
| : getSelector(selector) ?? ((data): unknown => data[selector]); | ||
| const rawValue = getter(rowData); | ||
|
|
||
| const safeValue = isRemoteFiltering && isDate(rawValue) | ||
| ? dateSerialization.serializeDate(rawValue, dateSerializationFormat) | ||
| : rawValue; | ||
|
|
||
| return { | ||
| getter, | ||
| rawValue, | ||
| safeValue, | ||
| }; | ||
| }; | ||
|
|
||
| export const UiGridCoreFocusUtils = { | ||
| getSortFilterValue, | ||
| }; |
This file contains hidden or 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
33 changes: 0 additions & 33 deletions
33
packages/devextreme/js/__internal/grids/grid_core/focus/m_focus_utils.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...me/js/__internal/grids/grid_core/keyboard_navigation/m_column_keyboard_navigation_core.ts
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason this file is recognized as new one, not renamed
perhaps this is because of added types - we can try to move it outside file