Skip to content

Commit 72364b9

Browse files
r-farkhutdinovRuslan Farkhutdinov
andauthored
Demos: Update old dates & remove +1 from mask in Editors (#33025)
Co-authored-by: Ruslan Farkhutdinov <ruslan.farkhutdinov@devexpress.com>
1 parent b832649 commit 72364b9

46 files changed

Lines changed: 86 additions & 86 deletions

File tree

Some content is hidden

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

apps/demos/Demos/Common/EditorAppearanceVariants/Angular/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<dx-text-box
9999
label="Phone"
100100
[inputAttr]="{ 'aria-label': 'Phone' }"
101-
mask="+1 (000) 000-0000"
101+
mask="(X00) 000-0000"
102102
id="phone"
103103
[maskRules]="phoneRules"
104104
[stylingMode]="stylingMode"

apps/demos/Demos/Common/EditorAppearanceVariants/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export default function App() {
159159
<TextBox
160160
id="phone"
161161
stylingMode={stylingMode}
162-
mask="+1 (000) 000-0000"
162+
mask="(X00) 000-0000"
163163
inputAttr={phoneLabel}
164164
maskRules={phoneRules}
165165
label="Phone"

apps/demos/Demos/Common/EditorAppearanceVariants/ReactJs/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function App() {
141141
<TextBox
142142
id="phone"
143143
stylingMode={stylingMode}
144-
mask="+1 (000) 000-0000"
144+
mask="(X00) 000-0000"
145145
inputAttr={phoneLabel}
146146
maskRules={phoneRules}
147147
label="Phone"

apps/demos/Demos/Common/EditorAppearanceVariants/Vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
:mask-rules="phoneRules"
9898
:input-attr="{ 'aria-label': 'Phone' }"
9999
id="phone"
100-
mask="+1 (000) 000-0000"
100+
mask="(X00) 000-0000"
101101
label="Phone"
102102
>
103103
<DxValidator>

apps/demos/Demos/Common/EditorAppearanceVariants/jQuery/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $(() => {
7474

7575
const phone = $('#phone').dxTextBox({
7676
label: 'Phone',
77-
mask: '+1 (000) 000-0000',
77+
mask: '(X00) 000-0000',
7878
inputAttr: { 'aria-label': 'Phone' },
7979
maskRules: {
8080
X: /[02-9]/,

apps/demos/Demos/DateBox/Formatting/Angular/app/app.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="dx-field-label">Locale-dependent format</div>
44
<div class="dx-field-value">
55
<dx-date-box
6-
placeholder="12/31/2018, 2:52 PM"
6+
placeholder="12/31/2025, 2:52 PM"
77
type="datetime"
88
[showClearButton]="true"
99
[useMaskBehavior]="true"
@@ -16,7 +16,7 @@
1616
<div class="dx-field-label">Built-in predefined format</div>
1717
<div class="dx-field-value">
1818
<dx-date-box
19-
placeholder="10/16/2018"
19+
placeholder="10/16/2025"
2020
[showClearButton]="true"
2121
[useMaskBehavior]="true"
2222
displayFormat="shortdate"
@@ -31,7 +31,7 @@
3131
<div class="dx-field-label">Locale Data Markup Language (LDML) pattern</div>
3232
<div class="dx-field-value">
3333
<dx-date-box
34-
placeholder="Tuesday, 16 of Oct, 2018 14:52"
34+
placeholder="Thursday, 16 of Oct, 2025 14:52"
3535
[showClearButton]="true"
3636
[useMaskBehavior]="true"
3737
displayFormat="EEEE, d of MMM, yyyy HH:mm"
@@ -46,7 +46,7 @@
4646
<div class="dx-field-label">Format with literal characters</div>
4747
<div class="dx-field-value">
4848
<dx-date-box
49-
placeholder="Year: 2018"
49+
placeholder="Year: 2025"
5050
[showClearButton]="true"
5151
[useMaskBehavior]="true"
5252
displayFormat="'Year': yyyy"

apps/demos/Demos/DateBox/Formatting/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (window && window.config?.packageConfigPaths) {
2222
})
2323

2424
export class AppComponent {
25-
date: Date = new Date(2018, 9, 16, 15, 8, 12);
25+
date: Date = new Date(2025, 9, 16, 15, 8, 12);
2626
}
2727

2828
bootstrapApplication(AppComponent, {

apps/demos/Demos/DateBox/Formatting/React/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import DateBox from 'devextreme-react/date-box';
33

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

@@ -14,7 +14,7 @@ function App() {
1414
<div className="dx-field-value">
1515
<DateBox
1616
type="datetime"
17-
placeholder="12/31/2018, 2:52 PM"
17+
placeholder="12/31/2025, 2:52 PM"
1818
showClearButton={true}
1919
inputAttr={dataTimeLabel}
2020
useMaskBehavior={true}
@@ -26,7 +26,7 @@ function App() {
2626
<div className="dx-field-value">
2727
<DateBox
2828
defaultValue={date}
29-
placeholder="10/16/2018"
29+
placeholder="10/16/2025"
3030
showClearButton={true}
3131
inputAttr={dateLabel}
3232
useMaskBehavior={true}
@@ -40,7 +40,7 @@ function App() {
4040
<div className="dx-field-value">
4141
<DateBox
4242
defaultValue={date}
43-
placeholder="Tuesday, 16 of Oct, 2018 14:52"
43+
placeholder="Thursday, 16 of Oct, 2025 14:52"
4444
showClearButton={true}
4545
inputAttr={dateLabel}
4646
useMaskBehavior={true}
@@ -54,7 +54,7 @@ function App() {
5454
<div className="dx-field-value">
5555
<DateBox
5656
defaultValue={date}
57-
placeholder="Year: 2018"
57+
placeholder="Year: 2025"
5858
showClearButton={true}
5959
useMaskBehavior={true}
6060
inputAttr={dateLabel}

apps/demos/Demos/DateBox/Formatting/ReactJs/App.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import DateBox from 'devextreme-react/date-box';
33

4-
const date = new Date(2018, 9, 16, 15, 8, 12);
4+
const date = new Date(2025, 9, 16, 15, 8, 12);
55
const dataTimeLabel = { 'aria-label': 'Date Time' };
66
const dateLabel = { 'aria-label': 'Date' };
77
function App() {
@@ -13,7 +13,7 @@ function App() {
1313
<div className="dx-field-value">
1414
<DateBox
1515
type="datetime"
16-
placeholder="12/31/2018, 2:52 PM"
16+
placeholder="12/31/2025, 2:52 PM"
1717
showClearButton={true}
1818
inputAttr={dataTimeLabel}
1919
useMaskBehavior={true}
@@ -25,7 +25,7 @@ function App() {
2525
<div className="dx-field-value">
2626
<DateBox
2727
defaultValue={date}
28-
placeholder="10/16/2018"
28+
placeholder="10/16/2025"
2929
showClearButton={true}
3030
inputAttr={dateLabel}
3131
useMaskBehavior={true}
@@ -39,7 +39,7 @@ function App() {
3939
<div className="dx-field-value">
4040
<DateBox
4141
defaultValue={date}
42-
placeholder="Tuesday, 16 of Oct, 2018 14:52"
42+
placeholder="Thursday, 16 of Oct, 2025 14:52"
4343
showClearButton={true}
4444
inputAttr={dateLabel}
4545
useMaskBehavior={true}
@@ -53,7 +53,7 @@ function App() {
5353
<div className="dx-field-value">
5454
<DateBox
5555
defaultValue={date}
56-
placeholder="Year: 2018"
56+
placeholder="Year: 2025"
5757
showClearButton={true}
5858
useMaskBehavior={true}
5959
inputAttr={dateLabel}

apps/demos/Demos/DateBox/Formatting/Vue/App.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:use-mask-behavior="true"
1010
:input-attr="{ 'aria-label': 'Date' }"
1111
type="datetime"
12-
placeholder="12/31/2018, 2:52 PM"
12+
placeholder="12/31/2025, 2:52 PM"
1313
/>
1414
</div>
1515
</div>
@@ -21,7 +21,7 @@
2121
:use-mask-behavior="true"
2222
:value="date"
2323
:input-attr="{ 'aria-label': 'Date' }"
24-
placeholder="10/16/2018"
24+
placeholder="10/16/2025"
2525
display-format="shortdate"
2626
type="date"
2727
/>
@@ -36,7 +36,7 @@
3636
:input-attr="{ 'aria-label': 'Date' }"
3737
:value="date"
3838
type="datetime"
39-
placeholder="Tuesday, 16 of Oct, 2018 14:52"
39+
placeholder="Thursday, 16 of Oct, 2025 14:52"
4040
display-format="EEEE, d of MMM, yyyy HH:mm"
4141
/>
4242
</div>
@@ -49,7 +49,7 @@
4949
:use-mask-behavior="true"
5050
:input-attr="{ 'aria-label': 'Date' }"
5151
:value="date"
52-
placeholder="Year: 2018"
52+
placeholder="Year: 2025"
5353
display-format="'Year': yyyy"
5454
type="date"
5555
/>
@@ -61,7 +61,7 @@
6161
<script setup lang="ts">
6262
import DxDateBox from 'devextreme-vue/date-box';
6363
64-
const date = new Date(2018, 9, 16, 15, 8, 12);
64+
const date = new Date(2025, 9, 16, 15, 8, 12);
6565
</script>
6666
<style>
6767
.dx-fieldset {

0 commit comments

Comments
 (0)