Skip to content

Commit 2c61fc3

Browse files
committed
update button_group keyExpr and generate additional files
1 parent c5a3b7a commit 2c61fc3

File tree

16 files changed

+31
-32
lines changed

16 files changed

+31
-32
lines changed

packages/devextreme-angular/src/ui/button-group/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323

2424

2525
import type { dxButtonGroupItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, OptionChangedEvent, SelectionChangedEvent } from 'devextreme/ui/button_group';
26-
import type { SingleMultipleOrNone, ButtonStyle } from 'devextreme/common';
26+
import type { template, SingleMultipleOrNone, ButtonStyle } from 'devextreme/common';
2727

2828
import DxButtonGroup from 'devextreme/ui/button_group';
2929

@@ -207,10 +207,10 @@ export class DxButtonGroupComponent extends DxComponent implements OnDestroy, On
207207
208208
*/
209209
@Input()
210-
get keyExpr(): any {
210+
get keyExpr(): ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string {
211211
return this._getOption('keyExpr');
212212
}
213-
set keyExpr(value: any) {
213+
set keyExpr(value: ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string) {
214214
this._setOption('keyExpr', value);
215215
}
216216

@@ -441,7 +441,7 @@ export class DxButtonGroupComponent extends DxComponent implements OnDestroy, On
441441
* This member supports the internal infrastructure and is not intended to be used directly from your code.
442442
443443
*/
444-
@Output() keyExprChange: EventEmitter<any>;
444+
@Output() keyExprChange: EventEmitter<((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string>;
445445

446446
/**
447447

packages/devextreme-angular/src/ui/card-view/nested/tab-panel-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ export class DxoCardViewTabPanelOptionsComponent extends NestedOption implements
176176
}
177177

178178
@Input()
179-
get keyExpr(): Function | string {
179+
get keyExpr(): ((item: any) => any) | string {
180180
return this._getOption('keyExpr');
181181
}
182-
set keyExpr(value: Function | string) {
182+
set keyExpr(value: ((item: any) => any) | string) {
183183
this._setOption('keyExpr', value);
184184
}
185185

packages/devextreme-angular/src/ui/chat/nested/suggestions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919

2020

2121
import type { dxButtonGroupItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, OptionChangedEvent, SelectionChangedEvent } from 'devextreme/ui/button_group';
22-
import type { SingleMultipleOrNone, ButtonStyle } from 'devextreme/common';
22+
import type { template, SingleMultipleOrNone, ButtonStyle } from 'devextreme/common';
2323

2424
import {
2525
DxIntegrationModule,
@@ -126,10 +126,10 @@ export class DxoChatSuggestionsComponent extends NestedOption implements OnDestr
126126
}
127127

128128
@Input()
129-
get keyExpr(): Function | string {
129+
get keyExpr(): ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string {
130130
return this._getOption('keyExpr');
131131
}
132-
set keyExpr(value: Function | string) {
132+
set keyExpr(value: ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string) {
133133
this._setOption('keyExpr', value);
134134
}
135135

packages/devextreme-angular/src/ui/data-grid/nested/tab-panel-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ export class DxoDataGridTabPanelOptionsComponent extends NestedOption implements
176176
}
177177

178178
@Input()
179-
get keyExpr(): Function | string {
179+
get keyExpr(): ((item: any) => any) | string {
180180
return this._getOption('keyExpr');
181181
}
182-
set keyExpr(value: Function | string) {
182+
set keyExpr(value: ((item: any) => any) | string) {
183183
this._setOption('keyExpr', value);
184184
}
185185

packages/devextreme-angular/src/ui/form/nested/tab-panel-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ export class DxoFormTabPanelOptionsComponent extends NestedOption implements OnD
176176
}
177177

178178
@Input()
179-
get keyExpr(): Function | string {
179+
get keyExpr(): ((item: any) => any) | string {
180180
return this._getOption('keyExpr');
181181
}
182-
set keyExpr(value: Function | string) {
182+
set keyExpr(value: ((item: any) => any) | string) {
183183
this._setOption('keyExpr', value);
184184
}
185185

packages/devextreme-angular/src/ui/scheduler/nested/options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020

2121
import type { dxButtonGroupItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, OptionChangedEvent, SelectionChangedEvent } from 'devextreme/ui/button_group';
2222
import type { SchedulerPredefinedDateNavigatorItem } from 'devextreme/ui/scheduler';
23-
import type { SingleMultipleOrNone, ButtonStyle } from 'devextreme/common';
23+
import type { template, SingleMultipleOrNone, ButtonStyle } from 'devextreme/common';
2424

2525
import {
2626
DxIntegrationModule,
@@ -127,10 +127,10 @@ export class DxoSchedulerOptionsComponent extends NestedOption implements OnDest
127127
}
128128

129129
@Input()
130-
get keyExpr(): Function | string {
130+
get keyExpr(): ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string {
131131
return this._getOption('keyExpr');
132132
}
133-
set keyExpr(value: Function | string) {
133+
set keyExpr(value: ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | Function, text: string, type: any | string, visible: boolean }) => any) | string) {
134134
this._setOption('keyExpr', value);
135135
}
136136

packages/devextreme-angular/src/ui/scheduler/nested/tab-panel-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ export class DxoSchedulerTabPanelOptionsComponent extends NestedOption implement
176176
}
177177

178178
@Input()
179-
get keyExpr(): Function | string {
179+
get keyExpr(): ((item: any) => any) | string {
180180
return this._getOption('keyExpr');
181181
}
182-
set keyExpr(value: Function | string) {
182+
set keyExpr(value: ((item: any) => any) | string) {
183183
this._setOption('keyExpr', value);
184184
}
185185

packages/devextreme-angular/src/ui/tree-list/nested/tab-panel-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ export class DxoTreeListTabPanelOptionsComponent extends NestedOption implements
176176
}
177177

178178
@Input()
179-
get keyExpr(): Function | string {
179+
get keyExpr(): ((item: any) => any) | string {
180180
return this._getOption('keyExpr');
181181
}
182-
set keyExpr(value: Function | string) {
182+
set keyExpr(value: ((item: any) => any) | string) {
183183
this._setOption('keyExpr', value);
184184
}
185185

packages/devextreme-react/src/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ type ISuggestionsProps = React.PropsWithChildren<{
528528
hint?: string | undefined;
529529
hoverStateEnabled?: boolean;
530530
items?: Array<dxButtonGroupItem>;
531-
keyExpr?: any;
531+
keyExpr?: ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | (() => void), text: string, type: any | string, visible: boolean }) => any) | string;
532532
onContentReady?: ((e: ButtonGroupContentReadyEvent) => void);
533533
onDisposing?: ((e: ButtonGroupDisposingEvent) => void);
534534
onInitialized?: ((e: ButtonGroupInitializedEvent) => void);

packages/devextreme-react/src/scheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ type IOptionsProps = React.PropsWithChildren<{
809809
hint?: string | undefined;
810810
hoverStateEnabled?: boolean;
811811
items?: Array<dxButtonGroupItem | SchedulerPredefinedDateNavigatorItem>;
812-
keyExpr?: any;
812+
keyExpr?: ((item: any | { disabled: boolean, elementAttr: Record<string, any>, hint: string, html: string, icon: string, template: template | (() => void), text: string, type: any | string, visible: boolean }) => any) | string;
813813
onContentReady?: ((e: ButtonGroupContentReadyEvent) => void);
814814
onDisposing?: ((e: ButtonGroupDisposingEvent) => void);
815815
onInitialized?: ((e: ButtonGroupInitializedEvent) => void);

0 commit comments

Comments
 (0)