Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngx-dsfr-components
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien LEPAGE
ngx-dsfr-components
Commits
405bc9f9
Commit
405bc9f9
authored
10 months ago
by
P. FONTANET
Browse files
Options
Downloads
Patches
Plain Diff
fix(input): placeholder (tout en minuscule)
parent
86a61674
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
MIGRATION.md
+1
-0
1 addition, 0 deletions
MIGRATION.md
projects/ngx-dsfr-components/src/lib/forms/form-input/base-input.component.ts
+12
-1
12 additions, 1 deletion
...mponents/src/lib/forms/form-input/base-input.component.ts
with
14 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
405bc9f9
...
...
@@ -5,6 +5,7 @@
-
feat(input): événement
`patternValueChange`
si un
`pattern`
est défini et que la valeur change
-
feat(skiplinks): ajout
`DsfrAnchorLink#route`
& ajout de l'output
`linkSelect`
-
fix(input): la valeur
`ariaExpanded`
à false n'est pas valorisée
-
fix(input):
`placeHolder`
déprécié en faveur de
`placeholder`
-
doc(input): commentaires sur les propriétés d'accessibilité revus
-
chore: export des mixins sass
-
chore: migration angular 16
...
...
This diff is collapsed.
Click to expand it.
MIGRATION.md
+
1
−
0
View file @
405bc9f9
...
...
@@ -44,6 +44,7 @@ ou _slots_ (`<ng-content />`). Description des colonnes :
| FormInput | 1.1 | propriété |
`dsfr-input`
|
`dsfr-form-input`
| 1.1 |
| FormInput | 1.2 | propriété |
`width`
| | 2.0 |
| FormInput | 1.2 | propriété |
`textarea`
|
`type`
| 2.0 |
| FormInput | 1.11 | propriété |
`placeHolder`
|
`placeholder`
| 2.0 |
| FormPassword | 1.5 | propriété |
`id`
|
`inputId`
| 2.0 |
| FormRadio | 1.5 | propriété |
`id`
|
`inputId`
| 2.0 |
| FormRadio | 1.1 | propriété |
`dsfr-radio`
|
`dsfr-form-radio`
| 1.1 |
...
...
This diff is collapsed.
Click to expand it.
projects/ngx-dsfr-components/src/lib/forms/form-input/base-input.component.ts
+
12
−
1
View file @
405bc9f9
...
...
@@ -83,7 +83,7 @@ export abstract class BaseInputComponent extends DefaultControlComponent<string>
/**
* Placeholder de l'input.
*/
@
Input
()
place
H
older
:
string
;
@
Input
()
place
h
older
:
string
;
/**
* Attribut min de l'input.
...
...
@@ -163,17 +163,28 @@ export abstract class BaseInputComponent extends DefaultControlComponent<string>
return
this
.
_type
;
}
/** @deprecated since 1.11.0 use placeholder instead (all lowercase) */
get
placeHolder
():
string
{
return
this
.
placeholder
;
}
/**
* Type de l'input, 'text' par défaut.
*/
@
Input
()
set
type
(
value
:
DsfrInputType
)
{
this
.
_type
=
value
;
this
.
inputMode
=
<
DsfrInputMode
>
INPUT_TYPE_TO_MODE
[
this
.
_type
]
||
undefined
;
// TODO 2.0 A Supprimer le pattern par défaut
if
(
this
.
_type
===
DsfrInputTypeConst
.
NUMBER
&&
!
this
.
pattern
)
{
this
.
pattern
=
'
[0-9]*
'
;
}
}
/** @deprecated since 1.11.0 use placeholder instead (all lowercase) */
set
placeHolder
(
value
:
string
)
{
this
.
placeholder
=
value
;
}
/**
* À l'écoute de la valeur afin d'émettre un événement dans le cas où on a un pattern.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment