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 @@ -98,7 +98,7 @@
<dx-text-box
label="Phone"
[inputAttr]="{ 'aria-label': 'Phone' }"
mask="+1 (000) 000-0000"
mask="(X00) 000-0000"
id="phone"
[maskRules]="phoneRules"
[stylingMode]="stylingMode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function App() {
<TextBox
id="phone"
stylingMode={stylingMode}
mask="+1 (000) 000-0000"
mask="(X00) 000-0000"
inputAttr={phoneLabel}
maskRules={phoneRules}
label="Phone"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function App() {
<TextBox
id="phone"
stylingMode={stylingMode}
mask="+1 (000) 000-0000"
mask="(X00) 000-0000"
inputAttr={phoneLabel}
maskRules={phoneRules}
label="Phone"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
:mask-rules="phoneRules"
:input-attr="{ 'aria-label': 'Phone' }"
id="phone"
mask="+1 (000) 000-0000"
mask="(X00) 000-0000"
label="Phone"
>
<DxValidator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $(() => {

const phone = $('#phone').dxTextBox({
label: 'Phone',
mask: '+1 (000) 000-0000',
mask: '(X00) 000-0000',
inputAttr: { 'aria-label': 'Phone' },
maskRules: {
X: /[02-9]/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="dx-field-label">Locale-dependent format</div>
<div class="dx-field-value">
<dx-date-box
placeholder="12/31/2018, 2:52 PM"
placeholder="12/31/2025, 2:52 PM"
type="datetime"
[showClearButton]="true"
[useMaskBehavior]="true"
Expand All @@ -16,7 +16,7 @@
<div class="dx-field-label">Built-in predefined format</div>
<div class="dx-field-value">
<dx-date-box
placeholder="10/16/2018"
placeholder="10/16/2025"
[showClearButton]="true"
[useMaskBehavior]="true"
displayFormat="shortdate"
Expand All @@ -31,7 +31,7 @@
<div class="dx-field-label">Locale Data Markup Language (LDML) pattern</div>
<div class="dx-field-value">
<dx-date-box
placeholder="Tuesday, 16 of Oct, 2018 14:52"
placeholder="Thursday, 16 of Oct, 2025 14:52"
[showClearButton]="true"
[useMaskBehavior]="true"
displayFormat="EEEE, d of MMM, yyyy HH:mm"
Expand All @@ -46,7 +46,7 @@
<div class="dx-field-label">Format with literal characters</div>
<div class="dx-field-value">
<dx-date-box
placeholder="Year: 2018"
placeholder="Year: 2025"
[showClearButton]="true"
[useMaskBehavior]="true"
displayFormat="'Year': yyyy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (window && window.config?.packageConfigPaths) {
})

export class AppComponent {
date: Date = new Date(2018, 9, 16, 15, 8, 12);
date: Date = new Date(2025, 9, 16, 15, 8, 12);
}

bootstrapApplication(AppComponent, {
Expand Down
10 changes: 5 additions & 5 deletions apps/demos/Demos/DateBox/Formatting/React/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import DateBox from 'devextreme-react/date-box';

const date = new Date(2018, 9, 16, 15, 8, 12);
const date = new Date(2025, 9, 16, 15, 8, 12);
const dataTimeLabel = { 'aria-label': 'Date Time' };
const dateLabel = { 'aria-label': 'Date' };

Expand All @@ -14,7 +14,7 @@ function App() {
<div className="dx-field-value">
<DateBox
type="datetime"
placeholder="12/31/2018, 2:52 PM"
placeholder="12/31/2025, 2:52 PM"
showClearButton={true}
inputAttr={dataTimeLabel}
useMaskBehavior={true}
Expand All @@ -26,7 +26,7 @@ function App() {
<div className="dx-field-value">
<DateBox
defaultValue={date}
placeholder="10/16/2018"
placeholder="10/16/2025"
showClearButton={true}
inputAttr={dateLabel}
useMaskBehavior={true}
Expand All @@ -40,7 +40,7 @@ function App() {
<div className="dx-field-value">
<DateBox
defaultValue={date}
placeholder="Tuesday, 16 of Oct, 2018 14:52"
placeholder="Thursday, 16 of Oct, 2025 14:52"
showClearButton={true}
inputAttr={dateLabel}
useMaskBehavior={true}
Expand All @@ -54,7 +54,7 @@ function App() {
<div className="dx-field-value">
<DateBox
defaultValue={date}
placeholder="Year: 2018"
placeholder="Year: 2025"
showClearButton={true}
useMaskBehavior={true}
inputAttr={dateLabel}
Expand Down
10 changes: 5 additions & 5 deletions apps/demos/Demos/DateBox/Formatting/ReactJs/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import DateBox from 'devextreme-react/date-box';

const date = new Date(2018, 9, 16, 15, 8, 12);
const date = new Date(2025, 9, 16, 15, 8, 12);
const dataTimeLabel = { 'aria-label': 'Date Time' };
const dateLabel = { 'aria-label': 'Date' };
function App() {
Expand All @@ -13,7 +13,7 @@ function App() {
<div className="dx-field-value">
<DateBox
type="datetime"
placeholder="12/31/2018, 2:52 PM"
placeholder="12/31/2025, 2:52 PM"
showClearButton={true}
inputAttr={dataTimeLabel}
useMaskBehavior={true}
Expand All @@ -25,7 +25,7 @@ function App() {
<div className="dx-field-value">
<DateBox
defaultValue={date}
placeholder="10/16/2018"
placeholder="10/16/2025"
showClearButton={true}
inputAttr={dateLabel}
useMaskBehavior={true}
Expand All @@ -39,7 +39,7 @@ function App() {
<div className="dx-field-value">
<DateBox
defaultValue={date}
placeholder="Tuesday, 16 of Oct, 2018 14:52"
placeholder="Thursday, 16 of Oct, 2025 14:52"
showClearButton={true}
inputAttr={dateLabel}
useMaskBehavior={true}
Expand All @@ -53,7 +53,7 @@ function App() {
<div className="dx-field-value">
<DateBox
defaultValue={date}
placeholder="Year: 2018"
placeholder="Year: 2025"
showClearButton={true}
useMaskBehavior={true}
inputAttr={dateLabel}
Expand Down
10 changes: 5 additions & 5 deletions apps/demos/Demos/DateBox/Formatting/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:use-mask-behavior="true"
:input-attr="{ 'aria-label': 'Date' }"
type="datetime"
placeholder="12/31/2018, 2:52 PM"
placeholder="12/31/2025, 2:52 PM"
/>
</div>
</div>
Expand All @@ -21,7 +21,7 @@
:use-mask-behavior="true"
:value="date"
:input-attr="{ 'aria-label': 'Date' }"
placeholder="10/16/2018"
placeholder="10/16/2025"
display-format="shortdate"
type="date"
/>
Expand All @@ -36,7 +36,7 @@
:input-attr="{ 'aria-label': 'Date' }"
:value="date"
type="datetime"
placeholder="Tuesday, 16 of Oct, 2018 14:52"
placeholder="Thursday, 16 of Oct, 2025 14:52"
display-format="EEEE, d of MMM, yyyy HH:mm"
/>
</div>
Expand All @@ -49,7 +49,7 @@
:use-mask-behavior="true"
:input-attr="{ 'aria-label': 'Date' }"
:value="date"
placeholder="Year: 2018"
placeholder="Year: 2025"
display-format="'Year': yyyy"
type="date"
/>
Expand All @@ -61,7 +61,7 @@
<script setup lang="ts">
import DxDateBox from 'devextreme-vue/date-box';

const date = new Date(2018, 9, 16, 15, 8, 12);
const date = new Date(2025, 9, 16, 15, 8, 12);
</script>
<style>
.dx-fieldset {
Expand Down
10 changes: 5 additions & 5 deletions apps/demos/Demos/DateBox/Formatting/jQuery/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
$(() => {
const date = new Date(2018, 9, 16, 15, 8, 12);
const date = new Date(2025, 9, 16, 15, 8, 12);

$('#default').dxDateBox({
placeholder: '12/31/2018, 2:52 PM',
placeholder: '12/31/2025, 2:52 PM',
type: 'datetime',
showClearButton: true,
useMaskBehavior: true,
inputAttr: { 'aria-label': 'Date Time' },
});

$('#constant').dxDateBox({
placeholder: '10/16/2018',
placeholder: '10/16/2025',
showClearButton: true,
useMaskBehavior: true,
displayFormat: 'shortdate',
Expand All @@ -20,7 +20,7 @@ $(() => {
});

$('#pattern').dxDateBox({
placeholder: 'Tuesday, 16 of Oct, 2018 14:52',
placeholder: 'Thursday, 16 of Oct, 2025 14:52',
showClearButton: true,
useMaskBehavior: true,
displayFormat: 'EEEE, d of MMM, yyyy HH:mm',
Expand All @@ -30,7 +30,7 @@ $(() => {
});

$('#escape').dxDateBox({
placeholder: 'Year: 2018',
placeholder: 'Year: 2025',
showClearButton: true,
useMaskBehavior: true,
displayFormat: "'Year': yyyy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ if (window && window.config?.packageConfigPaths) {
})
export class AppComponent {
dataSource = [
{ t: new Date(2011, 11, 22), costs: 19, income: 18 },
{ t: new Date(2011, 11, 29), costs: 27, income: 12 },
{ t: new Date(2012, 0, 5), costs: 30, income: 5 },
{ t: new Date(2012, 0, 12), costs: 26, income: 6 },
{ t: new Date(2012, 0, 19), costs: 18, income: 10 },
{ t: new Date(2012, 0, 26), costs: 15, income: 15 },
{ t: new Date(2012, 1, 2), costs: 14, income: 21 },
{ t: new Date(2012, 1, 9), costs: 14, income: 25 },
{ t: new Date(2024, 11, 22), costs: 19, income: 18 },
{ t: new Date(2024, 11, 29), costs: 27, income: 12 },
{ t: new Date(2025, 0, 5), costs: 30, income: 5 },
{ t: new Date(2025, 0, 12), costs: 26, income: 6 },
{ t: new Date(2025, 0, 19), costs: 18, income: 10 },
{ t: new Date(2025, 0, 26), costs: 15, income: 15 },
{ t: new Date(2025, 1, 2), costs: 14, income: 21 },
{ t: new Date(2025, 1, 9), costs: 14, income: 25 },
];

startSelectedValue: Date = new Date(2011, 11, 25);
startSelectedValue: Date = new Date(2024, 11, 25);

endSelectedValue: Date = new Date(2012, 0, 1);
endSelectedValue: Date = new Date(2025, 0, 1);
}

bootstrapApplication(AppComponent, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import RangeSelector, {

import { dataSource } from './data.ts';

const range = [new Date(2011, 11, 25), new Date(2012, 0, 1)];
const range = [new Date(2024, 11, 25), new Date(2025, 0, 1)];

const App = () => (
<RangeSelector
Expand Down
16 changes: 8 additions & 8 deletions apps/demos/Demos/RangeSelector/EmbeddedChart/React/data.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const dataSource = [
{ t: new Date(2011, 11, 22), costs: 19, income: 18 },
{ t: new Date(2011, 11, 29), costs: 27, income: 12 },
{ t: new Date(2012, 0, 5), costs: 30, income: 5 },
{ t: new Date(2012, 0, 12), costs: 26, income: 6 },
{ t: new Date(2012, 0, 19), costs: 18, income: 10 },
{ t: new Date(2012, 0, 26), costs: 15, income: 15 },
{ t: new Date(2012, 1, 2), costs: 14, income: 21 },
{ t: new Date(2012, 1, 9), costs: 14, income: 25 },
{ t: new Date(2024, 11, 22), costs: 19, income: 18 },
{ t: new Date(2024, 11, 29), costs: 27, income: 12 },
{ t: new Date(2025, 0, 5), costs: 30, income: 5 },
{ t: new Date(2025, 0, 12), costs: 26, income: 6 },
{ t: new Date(2025, 0, 19), costs: 18, income: 10 },
{ t: new Date(2025, 0, 26), costs: 15, income: 15 },
{ t: new Date(2025, 1, 2), costs: 14, income: 21 },
{ t: new Date(2025, 1, 9), costs: 14, income: 25 },
];
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import RangeSelector, {
} from 'devextreme-react/range-selector';
import { dataSource } from './data.js';

const range = [new Date(2011, 11, 25), new Date(2012, 0, 1)];
const range = [new Date(2024, 11, 25), new Date(2025, 0, 1)];
const App = () => (
<RangeSelector
id="range-selector"
Expand Down
16 changes: 8 additions & 8 deletions apps/demos/Demos/RangeSelector/EmbeddedChart/ReactJs/data.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const dataSource = [
{ t: new Date(2011, 11, 22), costs: 19, income: 18 },
{ t: new Date(2011, 11, 29), costs: 27, income: 12 },
{ t: new Date(2012, 0, 5), costs: 30, income: 5 },
{ t: new Date(2012, 0, 12), costs: 26, income: 6 },
{ t: new Date(2012, 0, 19), costs: 18, income: 10 },
{ t: new Date(2012, 0, 26), costs: 15, income: 15 },
{ t: new Date(2012, 1, 2), costs: 14, income: 21 },
{ t: new Date(2012, 1, 9), costs: 14, income: 25 },
{ t: new Date(2024, 11, 22), costs: 19, income: 18 },
{ t: new Date(2024, 11, 29), costs: 27, income: 12 },
{ t: new Date(2025, 0, 5), costs: 30, income: 5 },
{ t: new Date(2025, 0, 12), costs: 26, income: 6 },
{ t: new Date(2025, 0, 19), costs: 18, income: 10 },
{ t: new Date(2025, 0, 26), costs: 15, income: 15 },
{ t: new Date(2025, 1, 2), costs: 14, income: 21 },
{ t: new Date(2025, 1, 9), costs: 14, income: 25 },
];
2 changes: 1 addition & 1 deletion apps/demos/Demos/RangeSelector/EmbeddedChart/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
} from 'devextreme-vue/range-selector';
import { dataSource } from './data.ts';

const range = reactive([new Date(2011, 11, 25), new Date(2012, 0, 1)]);
const range = reactive([new Date(2024, 11, 25), new Date(2025, 0, 1)]);
</script>
<style scoped>
#range-selector {
Expand Down
16 changes: 8 additions & 8 deletions apps/demos/Demos/RangeSelector/EmbeddedChart/Vue/data.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const dataSource = [
{ t: new Date(2011, 11, 22), costs: 19, income: 18 },
{ t: new Date(2011, 11, 29), costs: 27, income: 12 },
{ t: new Date(2012, 0, 5), costs: 30, income: 5 },
{ t: new Date(2012, 0, 12), costs: 26, income: 6 },
{ t: new Date(2012, 0, 19), costs: 18, income: 10 },
{ t: new Date(2012, 0, 26), costs: 15, income: 15 },
{ t: new Date(2012, 1, 2), costs: 14, income: 21 },
{ t: new Date(2012, 1, 9), costs: 14, income: 25 },
{ t: new Date(2024, 11, 22), costs: 19, income: 18 },
{ t: new Date(2024, 11, 29), costs: 27, income: 12 },
{ t: new Date(2025, 0, 5), costs: 30, income: 5 },
{ t: new Date(2025, 0, 12), costs: 26, income: 6 },
{ t: new Date(2025, 0, 19), costs: 18, income: 10 },
{ t: new Date(2025, 0, 26), costs: 15, income: 15 },
{ t: new Date(2025, 1, 2), costs: 14, income: 21 },
{ t: new Date(2025, 1, 9), costs: 14, income: 25 },
];
Loading
Loading