Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
upsmf-common-form-elements-portal
Commits
9170addb
Commit
9170addb
authored
3 years ago
by
Vinod Kumar
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-25716 fix: accessibility changes
parent
6109edfc
snyk-upgrade-f42e30417b693e2eb5ca260d9cbfc5b9
master
release-4.10.1
release-4.2.0
release-4.3.0
release-4.4.0
release-4.5.0
release-4.6.0
release-4.7.0
release-4.8.0
release-4.9.0
release-5.0.0
release-5.0.1
release-5.1.0_v10
release-5.1.0_v11
release-5.1.0_v12
release-6.0.0_v13
release-6.0.0_v13-mobile
release-6.0.0_v14
revert-117-tag-input
revert-119-hotfix/edit-details
revert-94-tag-input
snyk-fix-bb6706a537ba2f5a29d4d0c4ea441193
snyk-upgrade-12c917ac8d79f5e72ebd71b7407f6ac6
snyk-upgrade-39fee69ffac9d0a0df5d5d24424777d8
snyk-upgrade-822eb34879b2fea17e28fad6b3e6a789
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
projects/common-form-elements/src/lib/dynamic-textarea/dynamic-textarea.component.html
+2
-2
.../src/lib/dynamic-textarea/dynamic-textarea.component.html
projects/common-form-elements/src/lib/dynamic-textarea/dynamic-textarea.component.ts
+3
-1
...ts/src/lib/dynamic-textarea/dynamic-textarea.component.ts
projects/common-form-elements/src/lib/multiple-dropdown/multiple-dropdown.component.html
+2
-2
...rc/lib/multiple-dropdown/multiple-dropdown.component.html
projects/common-form-elements/src/lib/multiple-dropdown/multiple-dropdown.component.ts
+3
-1
.../src/lib/multiple-dropdown/multiple-dropdown.component.ts
with
10 additions
and
6 deletions
+10
-6
projects/common-form-elements/src/lib/dynamic-textarea/dynamic-textarea.component.html
+
2
−
2
View file @
9170addb
<div
class=
"sb-textarea-container"
>
<label
[attr.data-title]=
"field.description ? field.description : null"
>
{{label}}
</label>
<textarea
class=
"sb-textarea"
[formControl]=
"formControlRef"
rows=
"5"
name=
"sb-textarea"
placeholder=
{{placeholder}}
[attr.disabled]=
"disabled ? true : null"
>
<label
[attr.data-title]=
"field.description ? field.description : null"
for=
"{{getId(label)}}"
>
{{label}}
</label>
<textarea
class=
"sb-textarea"
id=
"{{getId(label)}}"
[formControl]=
"formControlRef"
rows=
"5"
name=
"sb-textarea"
placeholder=
{{placeholder}}
[attr.disabled]=
"disabled ? true : null"
>
</textarea>
<div
class=
"remaining-length"
*ngIf=
"remainderValidLength$"
>
{{remainderValidLength$ | async}} Characters left
...
...
This diff is collapsed.
Click to expand it.
projects/common-form-elements/src/lib/dynamic-textarea/dynamic-textarea.component.ts
+
3
−
1
View file @
9170addb
...
...
@@ -35,5 +35,7 @@ export class DynamicTextareaComponent implements OnInit {
);
}
}
getId
(
id
)
{
return
id
.
replace
(
/
\s
/g
,
''
);
}
}
This diff is collapsed.
Click to expand it.
projects/common-form-elements/src/lib/multiple-dropdown/multiple-dropdown.component.html
+
2
−
2
View file @
9170addb
<div
class=
"cfe-multiselect-container multi-select-section-app"
[ngClass]=
"{'open': showModalStateDirty && showModal, 'closed': showModalStateDirty && !showModal}"
>
<label
class=
"cfe-multiselect-label input-label"
tabindex=
"0"
*ngIf=
"label"
for=
"{{label}}"
>
{{label}}
</label>
<label
class=
"cfe-multiselect-label input-label"
tabindex=
"0"
*ngIf=
"label"
for=
"{{
getId(
label
)
}}"
>
{{label}}
</label>
<div
class=
"cfe-multiselect-label"
*ngIf=
"labelHtml"
[innerHTML]=
"labelHtml | transposeHtml"
></div>
<ng-container
*ngIf=
"extras?.type === 'dropdown'"
>
<div
class=
"cfe-multiselect-field multi-select-container"
>
<div
class=
"cfe-multiselect-field multi-select-container"
id=
"{{getId(label)}}"
>
<sb-caret-up
*ngIf=
"showModal"
class=
"cfe-multiselect-field-caret caret-down"
tabindex=
"0"
[attr.disabled]=
"disabled ? true : ( context ? (context.invalid ? true : null) : null )"
(click)=
"openModal($event)"
>
</sb-caret-up>
...
...
This diff is collapsed.
Click to expand it.
projects/common-form-elements/src/lib/multiple-dropdown/multiple-dropdown.component.ts
+
3
−
1
View file @
9170addb
...
...
@@ -89,7 +89,9 @@ export class MultipleDropdownComponent implements OnInit, OnChanges, OnDestroy {
this
.
setupOptions
();
}
getId
(
id
)
{
return
id
.
replace
(
/
\s
/g
,
''
);
}
onSubmit
()
{
const
finalValue
=
this
.
tempValue
.
toList
().
toJS
();
this
.
formControlRef
.
patchValue
(
this
.
isMultiple
?
finalValue
:
finalValue
[
0
]);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets