-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5971 from deutschebank/db-contrib/waltz-5962-repo…
…rt-grids-app-group-columns Db contrib/waltz 5962 report grids app group columns
- Loading branch information
Showing
8 changed files
with
201 additions
and
4 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
56 changes: 56 additions & 0 deletions
56
waltz-ng/client/report-grid/components/svelte/pickers/AppGroupPicker.svelte
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,56 @@ | ||
<script> | ||
import Icon from "../../../../common/svelte/Icon.svelte"; | ||
import EntitySearchSelector from "../../../../common/svelte/EntitySearchSelector.svelte"; | ||
export let onSelect = () => console.log("Selecting involvement kind"); | ||
export let selectionFilter = () => true; | ||
function onSelectGroup(e) { | ||
if (e.detail == null) { | ||
return; | ||
} | ||
const column = { | ||
columnEntityId: e.detail.id, | ||
columnEntityKind: e.detail.kind, | ||
entityFieldReference: null, | ||
columnName: e.detail.name, | ||
displayName: null | ||
} | ||
onSelect(column); | ||
} | ||
$: canBeAdded = (d) => { | ||
if (d === null) { | ||
return true; | ||
} else { | ||
const column = { | ||
columnEntityId: d.id, | ||
columnEntityKind: d.kind, | ||
entityFieldReference: null, | ||
columnName: d.name, | ||
displayName: null | ||
} | ||
return selectionFilter(column); | ||
} | ||
} | ||
</script> | ||
|
||
<div class="help-block small"> | ||
<Icon name="info-circle"/> | ||
Select an app group using the search below. | ||
</div> | ||
<br> | ||
<EntitySearchSelector on:select={onSelectGroup} | ||
placeholder="Search for app group" | ||
entityKinds={['APP_GROUP']} | ||
selectionFilter={canBeAdded}> | ||
</EntitySearchSelector> |
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