Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export {
} from 'devextreme/common/core/localization';
export type {
Format,
FormatLocale,
} from 'devextreme/common/core/localization';
1 change: 1 addition & 0 deletions packages/devextreme-angular/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export namespace Core {
export namespace Localization {
export type Format = CoreLocalizationModule.Format;
export const formatDate = CoreLocalizationModule.formatDate;
export type FormatLocale = CoreLocalizationModule.FormatLocale;
export const formatMessage = CoreLocalizationModule.formatMessage;
export const formatNumber = CoreLocalizationModule.formatNumber;
export const loadMessages = CoreLocalizationModule.loadMessages;
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-angular/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export namespace Common {
export namespace Localization {
export type Format = import('devextreme/common/core/localization').Format;
export const formatDate = (CoreLocalizationModule as any).formatDate as typeof import('devextreme/common/core/localization').formatDate;
export type FormatLocale = import('devextreme/common/core/localization').FormatLocale;
export const formatMessage = (CoreLocalizationModule as any).formatMessage as typeof import('devextreme/common/core/localization').formatMessage;
export const formatNumber = (CoreLocalizationModule as any).formatNumber as typeof import('devextreme/common/core/localization').formatNumber;
export const loadMessages = (CoreLocalizationModule as any).loadMessages as typeof import('devextreme/common/core/localization').loadMessages;
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/bar-gauge/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoBarGaugeFormatComponent extends NestedOption implements OnDestro
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoBarGaugeItemTextFormatComponent extends NestedOption implements
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/bullet/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoBulletFormatComponent extends NestedOption implements OnDestroy,
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/card-view/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoCardViewFormatComponent extends NestedOption implements OnDestro
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoChartArgumentFormatComponent extends NestedOption implements OnD
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/chart/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoChartFormatComponent extends NestedOption implements OnDestroy,
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoChatDayHeaderFormatComponent extends NestedOption implements OnD
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoChatMessageTimestampFormatComponent extends NestedOption impleme
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoCircularGaugeFormatComponent extends NestedOption implements OnD
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/data-grid/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoDataGridFormatComponent extends NestedOption implements OnDestro
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoDataGridValueFormatComponent extends NestedOption implements OnD
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoDateBoxDisplayFormatComponent extends NestedOption implements On
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoDateRangeBoxDisplayFormatComponent extends NestedOption implemen
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoFilterBuilderFormatComponent extends NestedOption implements OnD
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/funnel/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoFunnelFormatComponent extends NestedOption implements OnDestroy,
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
9 changes: 9 additions & 0 deletions packages/devextreme-angular/src/ui/gantt/nested/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {



import type { FormatLocale } from 'devextreme/common/core/localization';
import type { Format } from 'devextreme/common';

import {
Expand Down Expand Up @@ -47,6 +48,14 @@ export class DxoGanttFormatComponent extends NestedOption implements OnDestroy,
this._setOption('formatter', value);
}

@Input()
get locale(): FormatLocale {
return this._getOption('locale');
}
set locale(value: FormatLocale) {
this._setOption('locale', value);
}

@Input()
get parser(): ((value: string) => number | Date) {
return this._getOption('parser');
Expand Down
Loading
Loading