Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
563a9f64
Commit
563a9f64
authored
2 years ago
by
jojohoch
Browse files
Options
Downloads
Patches
Plain Diff
[player] Show validation errors of drop lists
parent
9ee5558f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/common/components/input-elements/drop-list.component.ts
+5
-0
5 additions, 0 deletions
...s/common/components/input-elements/drop-list.component.ts
with
5 additions
and
0 deletions
projects/common/components/input-elements/drop-list.component.ts
+
5
−
0
View file @
563a9f64
...
...
@@ -17,6 +17,7 @@ import { FormElementComponent } from '../../directives/form-element-component.di
iOS 14 is not able to determine the height of the flex container-->
<div class="list"
[ngClass]="{ 'align-flex' : elementModel.orientation === 'flex', 'copyOnDrop': elementModel.copyOnDrop }"
[class.errors]="elementFormControl.errors && elementFormControl.touched"
[style.min-height.px]="elementModel.position.useMinHeight ? elementModel.height - 6 : null"
[class.dropList-highlight]="elementModel.highlightReceivingDropList"
[style.outline-color]="elementModel.highlightReceivingDropListColor"
...
...
@@ -115,6 +116,7 @@ import { FormElementComponent } from '../../directives/form-element-component.di
'
.copyOnDrop .item {transform: none !important}
'
,
'
.vertical-orientation.item:not(:last-child) {margin-bottom: 5px;}
'
,
'
.horizontal-orientation.item:not(:last-child) {margin-right: 5px}
'
,
'
.errors {outline: 2px solid #f44336 !important;}
'
,
'
.error-message {font-size: 75%; margin-top: 10px;}
'
,
// TODO error message?
'
.cdk-drag-preview {padding: 8px 20px; border-radius: 10px; z-index: 5;}
'
,
'
.drag-placeholder {background-color: lightgrey; border: dotted 3px #999; padding: 10px;}
'
,
...
...
@@ -152,6 +154,7 @@ export class DropListComponent extends FormElementComponent {
this
.
elementFormControl
.
setValue
(
(
event
.
container
.
data
.
elementFormControl
.
value
as
DragNDropValueObject
[])
);
event
.
container
.
data
.
elementFormControl
.
markAsTouched
();
}
else
{
const
presentValueIDs
=
event
.
container
.
data
.
elementFormControl
.
value
.
map
((
value2
:
DragNDropValueObject
)
=>
value2
.
id
);
...
...
@@ -166,6 +169,8 @@ export class DropListComponent extends FormElementComponent {
(
event
.
previousContainer
.
data
.
elementFormControl
.
value
as
DragNDropValueObject
[])
);
}
event
.
container
.
data
.
elementFormControl
.
markAsTouched
();
event
.
previousContainer
.
data
.
elementFormControl
.
markAsTouched
();
}
}
...
...
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