Skip to content

Commit c46e77f

Browse files
committed
regenerate
1 parent 57ff4a5 commit c46e77f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+9450
-206
lines changed

packages/devextreme-angular/src/common/grids/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export type {
22
AdaptiveDetailRowPreparingInfo,
3+
AIAssistant,
4+
AIAssistantRequestCreatingInfo,
35
AIColumnMode,
46
AIColumnRequestCreatingInfo,
57
ApplyChangesMode,

packages/devextreme-angular/src/common/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ export namespace Export {
273273
export function Grids(): void {}
274274
export namespace Grids {
275275
export type AdaptiveDetailRowPreparingInfo = GridsModule.AdaptiveDetailRowPreparingInfo;
276+
export type AIAssistant = GridsModule.AIAssistant;
277+
export type AIAssistantRequestCreatingInfo = GridsModule.AIAssistantRequestCreatingInfo;
276278
export type AIColumnMode = GridsModule.AIColumnMode;
277279
export type AIColumnRequestCreatingInfo<TRowData = any> = GridsModule.AIColumnRequestCreatingInfo<TRowData>;
278280
export type ApplyChangesMode = GridsModule.ApplyChangesMode;

packages/devextreme-angular/src/ui/data-grid/index.ts

Lines changed: 101 additions & 5 deletions
Large diffs are not rendered by default.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/* tslint:disable:max-line-length */
2+
3+
4+
import {
5+
Component,
6+
OnInit,
7+
OnDestroy,
8+
NgModule,
9+
Host,
10+
SkipSelf,
11+
Input
12+
} from '@angular/core';
13+
14+
15+
16+
17+
import type { AIIntegration } from 'devextreme/common/ai-integration';
18+
import type { dxChatOptions } from 'devextreme/ui/chat';
19+
import type { dxPopupOptions } from 'devextreme/ui/popup';
20+
21+
import {
22+
DxIntegrationModule,
23+
NestedOptionHost,
24+
} from 'devextreme-angular/core';
25+
import { NestedOption } from 'devextreme-angular/core';
26+
27+
28+
@Component({
29+
selector: 'dxo-data-grid-ai-assistant',
30+
standalone: true,
31+
template: '',
32+
styles: [''],
33+
imports: [ DxIntegrationModule ],
34+
providers: [NestedOptionHost]
35+
})
36+
export class DxoDataGridAIAssistantComponent extends NestedOption implements OnDestroy, OnInit {
37+
@Input()
38+
get aiIntegration(): AIIntegration {
39+
return this._getOption('aiIntegration');
40+
}
41+
set aiIntegration(value: AIIntegration) {
42+
this._setOption('aiIntegration', value);
43+
}
44+
45+
@Input()
46+
get chat(): dxChatOptions {
47+
return this._getOption('chat');
48+
}
49+
set chat(value: dxChatOptions) {
50+
this._setOption('chat', value);
51+
}
52+
53+
@Input()
54+
get enabled(): boolean {
55+
return this._getOption('enabled');
56+
}
57+
set enabled(value: boolean) {
58+
this._setOption('enabled', value);
59+
}
60+
61+
@Input()
62+
get popup(): dxPopupOptions<any> {
63+
return this._getOption('popup');
64+
}
65+
set popup(value: dxPopupOptions<any>) {
66+
this._setOption('popup', value);
67+
}
68+
69+
@Input()
70+
get title(): string {
71+
return this._getOption('title');
72+
}
73+
set title(value: string) {
74+
this._setOption('title', value);
75+
}
76+
77+
78+
protected get _optionPath() {
79+
return 'aiAssistant';
80+
}
81+
82+
83+
constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost,
84+
@Host() optionHost: NestedOptionHost) {
85+
super();
86+
parentOptionHost.setNestedOption(this);
87+
optionHost.setHost(this, this._fullOptionPath.bind(this));
88+
}
89+
90+
91+
ngOnInit() {
92+
this._addRecreatedComponent();
93+
}
94+
95+
ngOnDestroy() {
96+
this._addRemovedOption(this._getOptionPath());
97+
}
98+
99+
100+
}
101+
102+
@NgModule({
103+
imports: [
104+
DxoDataGridAIAssistantComponent
105+
],
106+
exports: [
107+
DxoDataGridAIAssistantComponent
108+
],
109+
})
110+
export class DxoDataGridAIAssistantModule { }
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/* tslint:disable:max-line-length */
2+
3+
4+
import {
5+
Component,
6+
NgModule,
7+
Host,
8+
SkipSelf,
9+
Input
10+
} from '@angular/core';
11+
12+
13+
14+
15+
16+
import {
17+
DxIntegrationModule,
18+
NestedOptionHost,
19+
} from 'devextreme-angular/core';
20+
import { CollectionNestedOption } from 'devextreme-angular/core';
21+
22+
import { PROPERTY_TOKEN_alerts } from 'devextreme-angular/core/tokens';
23+
24+
@Component({
25+
selector: 'dxi-data-grid-alert',
26+
standalone: true,
27+
template: '',
28+
styles: [''],
29+
imports: [ DxIntegrationModule ],
30+
providers: [
31+
NestedOptionHost,
32+
{
33+
provide: PROPERTY_TOKEN_alerts,
34+
useExisting: DxiDataGridAlertComponent,
35+
}
36+
]
37+
})
38+
export class DxiDataGridAlertComponent extends CollectionNestedOption {
39+
@Input()
40+
get id(): number | string {
41+
return this._getOption('id');
42+
}
43+
set id(value: number | string) {
44+
this._setOption('id', value);
45+
}
46+
47+
@Input()
48+
get message(): string {
49+
return this._getOption('message');
50+
}
51+
set message(value: string) {
52+
this._setOption('message', value);
53+
}
54+
55+
56+
protected get _optionPath() {
57+
return 'alerts';
58+
}
59+
60+
61+
constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost,
62+
@Host() optionHost: NestedOptionHost) {
63+
super();
64+
parentOptionHost.setNestedOption(this);
65+
optionHost.setHost(this, this._fullOptionPath.bind(this));
66+
}
67+
68+
69+
70+
ngOnDestroy() {
71+
this._deleteRemovedOptions(this._fullOptionPath());
72+
}
73+
74+
}
75+
76+
@NgModule({
77+
imports: [
78+
DxiDataGridAlertComponent
79+
],
80+
exports: [
81+
DxiDataGridAlertComponent
82+
],
83+
})
84+
export class DxiDataGridAlertModule { }
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/* tslint:disable:max-line-length */
2+
3+
4+
import {
5+
Component,
6+
NgModule,
7+
Host,
8+
SkipSelf,
9+
Input
10+
} from '@angular/core';
11+
12+
13+
14+
15+
16+
import {
17+
DxIntegrationModule,
18+
NestedOptionHost,
19+
} from 'devextreme-angular/core';
20+
import { CollectionNestedOption } from 'devextreme-angular/core';
21+
22+
import { PROPERTY_TOKEN_attachments } from 'devextreme-angular/core/tokens';
23+
24+
@Component({
25+
selector: 'dxi-data-grid-attachment',
26+
standalone: true,
27+
template: '',
28+
styles: [''],
29+
imports: [ DxIntegrationModule ],
30+
providers: [
31+
NestedOptionHost,
32+
{
33+
provide: PROPERTY_TOKEN_attachments,
34+
useExisting: DxiDataGridAttachmentComponent,
35+
}
36+
]
37+
})
38+
export class DxiDataGridAttachmentComponent extends CollectionNestedOption {
39+
@Input()
40+
get name(): string {
41+
return this._getOption('name');
42+
}
43+
set name(value: string) {
44+
this._setOption('name', value);
45+
}
46+
47+
@Input()
48+
get size(): number {
49+
return this._getOption('size');
50+
}
51+
set size(value: number) {
52+
this._setOption('size', value);
53+
}
54+
55+
56+
protected get _optionPath() {
57+
return 'attachments';
58+
}
59+
60+
61+
constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost,
62+
@Host() optionHost: NestedOptionHost) {
63+
super();
64+
parentOptionHost.setNestedOption(this);
65+
optionHost.setHost(this, this._fullOptionPath.bind(this));
66+
}
67+
68+
69+
70+
ngOnDestroy() {
71+
this._deleteRemovedOptions(this._fullOptionPath());
72+
}
73+
74+
}
75+
76+
@NgModule({
77+
imports: [
78+
DxiDataGridAttachmentComponent
79+
],
80+
exports: [
81+
DxiDataGridAttachmentComponent
82+
],
83+
})
84+
export class DxiDataGridAttachmentModule { }
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/* tslint:disable:max-line-length */
2+
3+
4+
import {
5+
Component,
6+
OnInit,
7+
OnDestroy,
8+
NgModule,
9+
Host,
10+
SkipSelf,
11+
Input
12+
} from '@angular/core';
13+
14+
15+
16+
17+
18+
import {
19+
DxIntegrationModule,
20+
NestedOptionHost,
21+
} from 'devextreme-angular/core';
22+
import { NestedOption } from 'devextreme-angular/core';
23+
24+
25+
@Component({
26+
selector: 'dxo-data-grid-author',
27+
standalone: true,
28+
template: '',
29+
styles: [''],
30+
imports: [ DxIntegrationModule ],
31+
providers: [NestedOptionHost]
32+
})
33+
export class DxoDataGridAuthorComponent extends NestedOption implements OnDestroy, OnInit {
34+
@Input()
35+
get avatarAlt(): string {
36+
return this._getOption('avatarAlt');
37+
}
38+
set avatarAlt(value: string) {
39+
this._setOption('avatarAlt', value);
40+
}
41+
42+
@Input()
43+
get avatarUrl(): string {
44+
return this._getOption('avatarUrl');
45+
}
46+
set avatarUrl(value: string) {
47+
this._setOption('avatarUrl', value);
48+
}
49+
50+
@Input()
51+
get id(): number | string {
52+
return this._getOption('id');
53+
}
54+
set id(value: number | string) {
55+
this._setOption('id', value);
56+
}
57+
58+
@Input()
59+
get name(): string {
60+
return this._getOption('name');
61+
}
62+
set name(value: string) {
63+
this._setOption('name', value);
64+
}
65+
66+
67+
protected get _optionPath() {
68+
return 'author';
69+
}
70+
71+
72+
constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost,
73+
@Host() optionHost: NestedOptionHost) {
74+
super();
75+
parentOptionHost.setNestedOption(this);
76+
optionHost.setHost(this, this._fullOptionPath.bind(this));
77+
}
78+
79+
80+
ngOnInit() {
81+
this._addRecreatedComponent();
82+
}
83+
84+
ngOnDestroy() {
85+
this._addRemovedOption(this._getOptionPath());
86+
}
87+
88+
89+
}
90+
91+
@NgModule({
92+
imports: [
93+
DxoDataGridAuthorComponent
94+
],
95+
exports: [
96+
DxoDataGridAuthorComponent
97+
],
98+
})
99+
export class DxoDataGridAuthorModule { }

0 commit comments

Comments
 (0)