File tree Expand file tree Collapse file tree
packages/devextreme/js/__internal/grids Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { AIAssistantController } from '@ts/grids/grid_core/ai_assistant/ai_assistant_controller' ;
22import type { GridCommand , GridExtraContextOption } from '@ts/grids/grid_core/ai_assistant/types' ;
33
4- import { dataGridCommands } from './commands' ;
4+ import { dataGridCommands } from './commands/index ' ;
55
66export class DataGridAIAssistantController extends AIAssistantController {
77 protected getGridCommandList ( ) : GridCommand [ ] {
8- return dataGridCommands ;
8+ const coreCommands = super . getGridCommandList ( ) ;
9+
10+ return [
11+ ...coreCommands ,
12+ ...dataGridCommands ,
13+ ] ;
914 }
1015
1116 protected getGridExtraContext ( ) : GridExtraContextOption | null {
Original file line number Diff line number Diff line change 1- import commands , { commandsCore } from '@ts/grids/grid_core/ai_assistant/commands' ;
21import type { GridCommand } from '@ts/grids/grid_core/ai_assistant/types' ;
32
43import { clearGroupingCommand , groupingCommand } from './grouping' ;
54import { clearSummaryCommand , summaryCommand } from './summary' ;
65
76export const dataGridCommands = [
8- ...commandsCore ,
97 groupingCommand ,
108 clearGroupingCommand ,
119 summaryCommand ,
1210 clearSummaryCommand ,
1311] as GridCommand [ ] ;
1412
1513export default {
16- ...commands ,
1714 groupingCommand,
1815 clearGroupingCommand,
1916 summaryCommand,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { fromPromise } from '@ts/core/utils/m_deferred';
1414import { hasCommandErrors } from '../ai_chat/utils' ;
1515import { Controller } from '../m_modules' ;
1616import { AIAssistantIntegrationController } from './ai_assistant_integration_controller' ;
17- import { commandsCore } from './commands' ;
17+ import { coreCommands } from './commands/index ' ;
1818import { AI_ASSISTANT_AUTHOR , AI_ASSISTANT_AUTHOR_ID , MessageStatus } from './const' ;
1919import { GridCommands } from './grid_commands' ;
2020import type {
@@ -235,7 +235,7 @@ export class AIAssistantController extends Controller {
235235 }
236236
237237 protected getGridCommandList ( ) : GridCommand [ ] {
238- return commandsCore ;
238+ return [ ... coreCommands ] ;
239239 }
240240
241241 protected getGridExtraContext ( ) : GridExtraContextOption | null {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import {
3333 sortingCommand ,
3434} from './sorting' ;
3535
36- export const commandsCore = [
36+ export const coreCommands = [
3737 columnsPinningCommand ,
3838 columnsReorderCommand ,
3939 columnsResizeCommand ,
You can’t perform that action at this time.
0 commit comments