Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ export class DxPivotGridFieldChooserComponent extends DxComponent implements OnD

*/
@Input()
get state(): any {
get state(): any | undefined {
return this._getOption('state');
}
set state(value: any) {
set state(value: any | undefined) {
this._setOption('state', value);
}

Expand Down Expand Up @@ -498,7 +498,7 @@ export class DxPivotGridFieldChooserComponent extends DxComponent implements OnD
* This member supports the internal infrastructure and is not intended to be used directly from your code.

*/
@Output() stateChange: EventEmitter<any>;
@Output() stateChange: EventEmitter<any | undefined>;

/**

Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-angular/src/ui/pivot-grid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ export class DxPivotGridComponent extends DxComponent implements OnDestroy, OnCh

*/
@Input()
get stateStoring(): { customLoad?: Function, customSave?: ((state: any) => void), enabled?: boolean, savingTimeout?: number, storageKey?: string, type?: StateStoreType } {
get stateStoring(): { customLoad?: Function, customSave?: ((state: any) => void), enabled?: boolean, savingTimeout?: number, storageKey?: string | undefined, type?: StateStoreType } {
return this._getOption('stateStoring');
}
set stateStoring(value: { customLoad?: Function, customSave?: ((state: any) => void), enabled?: boolean, savingTimeout?: number, storageKey?: string, type?: StateStoreType }) {
set stateStoring(value: { customLoad?: Function, customSave?: ((state: any) => void), enabled?: boolean, savingTimeout?: number, storageKey?: string | undefined, type?: StateStoreType }) {
this._setOption('stateStoring', value);
}

Expand Down Expand Up @@ -749,7 +749,7 @@ export class DxPivotGridComponent extends DxComponent implements OnDestroy, OnCh
* This member supports the internal infrastructure and is not intended to be used directly from your code.

*/
@Output() stateStoringChange: EventEmitter<{ customLoad?: Function, customSave?: ((state: any) => void), enabled?: boolean, savingTimeout?: number, storageKey?: string, type?: StateStoreType }>;
@Output() stateStoringChange: EventEmitter<{ customLoad?: Function, customSave?: ((state: any) => void), enabled?: boolean, savingTimeout?: number, storageKey?: string | undefined, type?: StateStoreType }>;

/**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export class DxoPivotGridStateStoringComponent extends NestedOption implements O
}

@Input()
get storageKey(): string {
get storageKey(): string | undefined {
return this._getOption('storageKey');
}
set storageKey(value: string) {
set storageKey(value: string | undefined) {
this._setOption('storageKey', value);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-react/src/pivot-grid-field-chooser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type ReplaceFieldTypes<TSource, TReplacement> = {

type IPivotGridFieldChooserOptionsNarrowedEvents = {
onContentReady?: ((e: ContentReadyEvent) => void);
onContextMenuPreparing?: ((e: ContextMenuPreparingEvent) => void);
onContextMenuPreparing?: ((e: ContextMenuPreparingEvent) => void) | undefined;
onDisposing?: ((e: DisposingEvent) => void);
onInitialized?: ((e: InitializedEvent) => void);
}
Expand Down
10 changes: 5 additions & 5 deletions packages/devextreme-react/src/pivot-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ type ReplaceFieldTypes<TSource, TReplacement> = {
}

type IPivotGridOptionsNarrowedEvents = {
onCellClick?: ((e: CellClickEvent) => void);
onCellPrepared?: ((e: CellPreparedEvent) => void);
onCellClick?: ((e: CellClickEvent) => void) | undefined;
onCellPrepared?: ((e: CellPreparedEvent) => void) | undefined;
onContentReady?: ((e: ContentReadyEvent) => void);
onContextMenuPreparing?: ((e: ContextMenuPreparingEvent) => void);
onContextMenuPreparing?: ((e: ContextMenuPreparingEvent) => void) | undefined;
onDisposing?: ((e: DisposingEvent) => void);
onExporting?: ((e: ExportingEvent) => void);
onExporting?: ((e: ExportingEvent) => void) | undefined;
onInitialized?: ((e: InitializedEvent) => void);
}

Expand Down Expand Up @@ -358,7 +358,7 @@ type IStateStoringProps = React.PropsWithChildren<{
customSave?: ((state: any) => void);
enabled?: boolean;
savingTimeout?: number;
storageKey?: string;
storageKey?: string | undefined;
type?: StateStoreType;
}>
const _componentStateStoring = (props: IStateStoringProps) => {
Expand Down
18 changes: 9 additions & 9 deletions packages/devextreme-react/src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ type ReplaceFieldTypes<TSource, TReplacement> = {
}

type ISchedulerOptionsNarrowedEvents = {
onAppointmentAdded?: ((e: AppointmentAddedEvent) => void);
onAppointmentAdding?: ((e: AppointmentAddingEvent) => void);
onAppointmentAdded?: ((e: AppointmentAddedEvent) => void) | undefined;
onAppointmentAdding?: ((e: AppointmentAddingEvent) => void) | undefined;
onAppointmentClick?: ((e: AppointmentClickEvent) => void);
onAppointmentContextMenu?: ((e: AppointmentContextMenuEvent) => void);
onAppointmentDblClick?: ((e: AppointmentDblClickEvent) => void);
onAppointmentDeleted?: ((e: AppointmentDeletedEvent) => void);
onAppointmentDeleting?: ((e: AppointmentDeletingEvent) => void);
onAppointmentFormOpening?: ((e: AppointmentFormOpeningEvent) => void);
onAppointmentRendered?: ((e: AppointmentRenderedEvent) => void);
onAppointmentTooltipShowing?: ((e: AppointmentTooltipShowingEvent) => void);
onAppointmentUpdated?: ((e: AppointmentUpdatedEvent) => void);
onAppointmentUpdating?: ((e: AppointmentUpdatingEvent) => void);
onAppointmentDeleted?: ((e: AppointmentDeletedEvent) => void) | undefined;
onAppointmentDeleting?: ((e: AppointmentDeletingEvent) => void) | undefined;
onAppointmentFormOpening?: ((e: AppointmentFormOpeningEvent) => void) | undefined;
onAppointmentRendered?: ((e: AppointmentRenderedEvent) => void) | undefined;
onAppointmentTooltipShowing?: ((e: AppointmentTooltipShowingEvent) => void) | undefined;
onAppointmentUpdated?: ((e: AppointmentUpdatedEvent) => void) | undefined;
onAppointmentUpdating?: ((e: AppointmentUpdatingEvent) => void) | undefined;
onCellClick?: ((e: CellClickEvent) => void);
onCellContextMenu?: ((e: CellContextMenuEvent) => void);
onContentReady?: ((e: ContentReadyEvent) => void);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class FieldChooser extends FieldChooserBase {
layout: 0,
dataSource: null,
encodeHtml: true,
onContextMenuPreparing: null,
onContextMenuPreparing: undefined,
allowSearch: false,
searchTimeout: 500,
texts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class FieldChooserBase extends mixinWidget {
...{
allowFieldDragging: true,
applyChangesMode: 'instantly',
state: null,
state: undefined,
headerFilter: {
Comment thread
aleksei-semikozov marked this conversation as resolved.
width: 252,
height: 325,
Expand Down
10 changes: 5 additions & 5 deletions packages/devextreme/js/__internal/grids/pivot_grid/m_widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class PivotGrid extends Widget {
height: 600,
applyChangesMode: 'instantly',
},
onContextMenuPreparing: null,
onContextMenuPreparing: undefined,
allowSorting: false,
allowSortingBySummary: false,
allowFiltering: false,
Expand Down Expand Up @@ -251,13 +251,13 @@ class PivotGrid extends Widget {
exportToExcel: localizationMessage.format('dxDataGrid-exportToExcel'),
dataNotAvailable: localizationMessage.format('dxPivotGrid-dataNotAvailable'),
},
onCellClick: null,
onCellPrepared: null,
onCellClick: undefined,
onCellPrepared: undefined,
Comment thread
aleksei-semikozov marked this conversation as resolved.
showBorders: false,

stateStoring: {
enabled: false,
storageKey: null,
storageKey: undefined,
type: 'localStorage',
customLoad: null,
Comment thread
aleksei-semikozov marked this conversation as resolved.
customSave: null,
Expand All @@ -266,7 +266,7 @@ class PivotGrid extends Widget {

onExpandValueChanging: null,
renderCellCountLimit: 20000,
onExporting: null,
onExporting: undefined,
headerFilter: {
width: 252,
height: 325,
Expand Down
20 changes: 10 additions & 10 deletions packages/devextreme/js/ui/pivot_grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,35 +516,35 @@ export interface dxPivotGridOptions extends WidgetOptions<dxPivotGrid> {
/**
* @docid
* @type_function_param1 e:{ui/pivot_grid:CellClickEvent}
* @default null
* @default undefined
* @action
* @public
*/
onCellClick?: ((e: CellClickEvent) => void);
onCellClick?: ((e: CellClickEvent) => void) | undefined;
/**
* @docid
* @type_function_param1 e:{ui/pivot_grid:CellPreparedEvent}
* @default null
* @default undefined
* @action
* @public
*/
onCellPrepared?: ((e: CellPreparedEvent) => void);
onCellPrepared?: ((e: CellPreparedEvent) => void) | undefined;
/**
* @docid
* @type_function_param1 e:{ui/pivot_grid:ContextMenuPreparingEvent}
* @default null
* @default undefined
* @action
* @public
*/
onContextMenuPreparing?: ((e: ContextMenuPreparingEvent) => void);
onContextMenuPreparing?: ((e: ContextMenuPreparingEvent) => void) | undefined;
/**
* @docid
* @type_function_param1 e:{ui/pivot_grid:ExportingEvent}
* @default null
* @default undefined
* @action
* @public
*/
onExporting?: ((e: ExportingEvent) => void);
onExporting?: ((e: ExportingEvent) => void) | undefined;
/**
* @docid
* @default "standard"
Expand Down Expand Up @@ -631,9 +631,9 @@ export interface dxPivotGridOptions extends WidgetOptions<dxPivotGrid> {
savingTimeout?: number;
/**
* @docid
* @default null
* @default undefined
*/
storageKey?: string;
storageKey?: string | undefined;
/**
* @docid
* @default "localStorage"
Expand Down
24 changes: 1 addition & 23 deletions packages/devextreme/js/ui/pivot_grid/data_source.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export interface PivotGridDataSourceOptions {
* @default undefined
* @public
*/
fields?: Array<Field>;
fields?: Array<Field> | undefined;
/**
* @docid
* @type Filter expression
Expand Down Expand Up @@ -293,7 +293,6 @@ export interface PivotGridDataSourceField {
area?: PivotGridArea | undefined;
/**
* @docid PivotGridDataSourceOptions.fields.areaIndex
* @default undefined
* @public
*/
areaIndex?: number;
Expand All @@ -304,13 +303,11 @@ export interface PivotGridDataSourceField {
calculateCustomSummary?: ((options: { summaryProcess?: string; value?: any; totalValue?: any }) => void);
/**
* @docid PivotGridDataSourceOptions.fields.calculateSummaryValue
* @default undefined
* @public
*/
calculateSummaryValue?: ((e: dxPivotGridSummaryCell) => number | null);
/**
* @docid PivotGridDataSourceOptions.fields.caption
* @default undefined
* @public
*/
caption?: string;
Expand All @@ -321,19 +318,16 @@ export interface PivotGridDataSourceField {
customizeText?: ((cellInfo: { value?: string | number | Date; valueText?: string }) => string);
/**
* @docid PivotGridDataSourceOptions.fields.dataField
* @default undefined
* @public
*/
dataField?: string;
/**
* @docid PivotGridDataSourceOptions.fields.dataType
* @default undefined
* @public
*/
dataType?: PivotGridDataType;
/**
* @docid PivotGridDataSourceOptions.fields.displayFolder
* @default undefined
* @public
*/
displayFolder?: string;
Expand All @@ -351,7 +345,6 @@ export interface PivotGridDataSourceField {
filterType?: FilterType;
/**
* @docid PivotGridDataSourceOptions.fields.filterValues
* @default undefined
* @public
*/
filterValues?: Array<any>;
Expand All @@ -363,19 +356,16 @@ export interface PivotGridDataSourceField {
format?: Format;
/**
* @docid PivotGridDataSourceOptions.fields.groupIndex
* @default undefined
* @public
*/
groupIndex?: number;
/**
* @docid PivotGridDataSourceOptions.fields.groupInterval
* @default undefined
* @public
*/
groupInterval?: PivotGridGroupInterval | number;
/**
* @docid PivotGridDataSourceOptions.fields.groupName
* @default undefined
* @public
*/
groupName?: string;
Expand All @@ -399,26 +389,22 @@ export interface PivotGridDataSourceField {
};
/**
* @docid PivotGridDataSourceOptions.fields.isMeasure
* @default undefined
* @public
*/
isMeasure?: boolean;
/**
* @docid PivotGridDataSourceOptions.fields.name
* @default undefined
* @public
*/
name?: string;
/**
* @docid PivotGridDataSourceOptions.fields.runningTotal
* @default undefined
* @public
*/
runningTotal?: PivotGridRunningTotalMode;
/**
* @docid PivotGridDataSourceOptions.fields.selector
* @type function(data)
* @default undefined
* @public
*/
selector?: Function;
Expand All @@ -436,25 +422,21 @@ export interface PivotGridDataSourceField {
showTotals?: boolean;
/**
* @docid PivotGridDataSourceOptions.fields.showValues
* @default undefined
* @public
*/
showValues?: boolean;
/**
* @docid PivotGridDataSourceOptions.fields.sortBy
* @default undefined
* @public
*/
sortBy?: PivotGridSortBy;
/**
* @docid PivotGridDataSourceOptions.fields.sortBySummaryField
* @default undefined
* @public
*/
sortBySummaryField?: string;
/**
* @docid PivotGridDataSourceOptions.fields.sortBySummaryPath
* @default undefined
* @public
*/
sortBySummaryPath?: Array<number | string>;
Expand All @@ -466,13 +448,11 @@ export interface PivotGridDataSourceField {
sortOrder?: SortOrder;
/**
* @docid PivotGridDataSourceOptions.fields.sortingMethod
* @default undefined
* @public
*/
sortingMethod?: ((a: { value?: string | number; children?: Array<any> }, b: { value?: string | number; children?: Array<any> }) => number);
/**
* @docid PivotGridDataSourceOptions.fields.summaryDisplayMode
* @default undefined
* @public
*/
summaryDisplayMode?: PivotGridSummaryDisplayMode;
Expand All @@ -490,13 +470,11 @@ export interface PivotGridDataSourceField {
visible?: boolean;
/**
* @docid PivotGridDataSourceOptions.fields.width
* @default undefined
* @public
*/
width?: number;
/**
* @docid PivotGridDataSourceOptions.fields.wordWrapEnabled
* @default undefined
* @public
*/
wordWrapEnabled?: boolean;
Expand Down
Loading
Loading