-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d09785d
commit 3aea70e
Showing
7 changed files
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
<%= htmlWebpackPlugin.options.font %> | ||
</head> | ||
<body> | ||
<ids-container role="main" padding="8" hidden> | ||
<ids-theme-switcher mode="light"></ids-theme-switcher> | ||
<ids-layout-grid cols="3" gap="md"> | ||
<ids-layout-grid-cell> | ||
<ids-text font-size="12" type="h1">Input - Time Validation</ids-text> | ||
<br> | ||
<ids-input type="text" validate="time" format="hh:mm a" label="Time validation (hh:mm a)"></ids-input> | ||
<ids-input type="text" validate="time" format="h:mm a" label="Time validation (h:mm a)"></ids-input> | ||
<ids-input type="text" validate="time" format="HH:mm" label="Time validation (HH:mm)"></ids-input> | ||
<ids-input type="text" validate="time" format="H:mm" label="Time validation (H:mm)"></ids-input> | ||
<ids-input class="e2e-input-mask" type="text" validate="time" format="hh:mm a" mask="date" label="Time mask with validation (hh:mm a)"></ids-input> | ||
<ids-input class="e2e-input-mask" type="text" validate="time" format="HH:mm" mask="date" label="Time mask with validation (HH:mm)"></ids-input> | ||
</ids-layout-grid-cell> | ||
<ids-layout-grid-cell> | ||
<ids-text font-size="12" type="h1">Input - Date Validation</ids-text> | ||
<br> | ||
<ids-input type="text" validate="date" format="M/d/yyyy" label="Date validation (M/d/yyyy)"></ids-input> | ||
<ids-input type="text" validate="date" format="d/M/yyyy" label="Date validation (d/M/yyyy)"></ids-input> | ||
<ids-input type="text" validate="date" format="yyyy-MM-dd" label="Date validation (yyyy-MM-dd)"></ids-input> | ||
<ids-input type="text" validate="date" format="dd.MM.yyyy" label="Date validation (dd.MM.yyyy)"></ids-input> | ||
<ids-input class="e2e-input-mask" type="text" validate="date" format="M/d/yyyy" mask="date" label="Date mask with validation (M/d/yyyy)"></ids-input> | ||
<ids-input class="e2e-input-mask" type="text" validate="date" format="yyyy-MM-dd" mask="date" label="Date mask with validation (yyyy-MM-dd)"></ids-input> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
</ids-container> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Supporting components | ||
import '../ids-input'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
document.querySelectorAll('.e2e-input-mask') | ||
.forEach((item: any) => { | ||
item.maskOptions = { format: item.format }; | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.