-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/input): prevent mouse states for read-only and disabled inpu…
…ts (#562) Co-authored-by: goncalosard <innsiiiider@hotmail.com>
- Loading branch information
1 parent
510b131
commit b3fdbc1
Showing
19 changed files
with
446 additions
and
85 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
packages/angular-test-app/src/preview-examples/input-labels.ts
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,28 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
template: ` | ||
<form class="needs-validation m-2"> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Label Start</span> | ||
<input type="text" class="form-control" /> | ||
</ix-input-group> | ||
<ix-input-group> | ||
<input type="text" class="form-control" /> | ||
<span slot="input-end">Label End</span> | ||
</ix-input-group> | ||
</form> | ||
`, | ||
}) | ||
export default class Input {} |
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
53 changes: 53 additions & 0 deletions
53
packages/angular-test-app/src/preview-examples/input-types.ts
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,53 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
template: ` | ||
<form class="needs-validation m-2"> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Text:</span> | ||
<input placeholder="Enter text" type="text" class="form-control" /> | ||
</ix-input-group> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Number:</span> | ||
<input type="number" class="form-control" /> | ||
<span slot="input-end">.00</span> | ||
<span slot="input-end">$</span> | ||
</ix-input-group> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Password:</span> | ||
<input | ||
placeholder="Enter password" | ||
type="password" | ||
class="form-control" | ||
/> | ||
</ix-input-group> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Email:</span> | ||
<input | ||
placeholder="example@domain.com" | ||
type="email" | ||
class="form-control" | ||
/> | ||
</ix-input-group> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Telephone:</span> | ||
<input placeholder="111-111-111" type="tel" class="form-control" /> | ||
</ix-input-group> | ||
</form> | ||
`, | ||
}) | ||
export default class Input {} |
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
Binary file modified
BIN
-14 Bytes
(100%)
...2e.ts-snapshots/category-filter-basic-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-34 Bytes
(100%)
...-snapshots/category-filter-categories-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
33 changes: 33 additions & 0 deletions
33
packages/html-test-app/src/preview-examples/input-labels.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,33 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2023 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Input Search example</title> | ||
</head> | ||
|
||
|
||
|
||
<body class="theme-brand-dark"> | ||
<!-- Preview code --> | ||
<form class="needs-validation m-2"> | ||
<ix-input-group style="margin-bottom: 0.5rem;"> | ||
<span slot="input-start">Label Start</span> | ||
<input type="text" class="form-control" /> | ||
</ix-input-group> | ||
|
||
<ix-input-group> | ||
<input type="text" class="form-control" /> | ||
<span slot="input-end">Label End</span> | ||
</ix-input-group> | ||
</form> | ||
<!-- Preview code --> | ||
<script type="module" src="./init.js"></script> | ||
</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
Oops, something went wrong.