-
Notifications
You must be signed in to change notification settings - Fork 13
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 #479 from plantinformatics/develop
Release v3.5.0 Dataset Collections
- Loading branch information
Showing
45 changed files
with
1,099 additions
and
145 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{!-- (queue (mut selectedValue) (action @selectedGroupChanged)) --}} | ||
<select multiple | ||
onchange={{action this.selectedGroupChangedId value="target.value" preventDefault=false}}> | ||
{{#each @values as |optionValue|}} | ||
{{!-- selected seems to be not used for multiple --}} | ||
<option value={{optionValue.id}} selected={{action this.selected @selectedValue optionValue}}>{{optionValue.name}}</option> | ||
{{/each}} | ||
</select> | ||
|
||
{{yield}} |
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,42 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
import { action } from '@ember/object'; | ||
|
||
import { thenOrNow } from '../../utils/common/promises'; | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
const dLog = console.debug; | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
export default class FormSelectMultipleComponent extends Component { | ||
// selectedValue; | ||
|
||
@action | ||
selectedGroupChangedId(selectedGroupId) { | ||
const fnName = 'selectedGroupChangedId'; | ||
let | ||
gsP = this.args.values, | ||
selectedGroup = thenOrNow(gsP, (gs) => { | ||
let | ||
groupValue = gs.findBy('id', selectedGroupId); | ||
dLog(fnName, selectedGroupId, groupValue?.name, groupValue?.id, arguments, this); | ||
this.args.selectedGroupChanged(groupValue); | ||
}); | ||
} | ||
|
||
@action | ||
/** | ||
* @param selectedValue @selectedValue i.e. currently selected values | ||
* @param optionValue {id, name} of the selected row | ||
* selected seems to be not used for multiple. | ||
*/ | ||
selected(selectedValue, optionValue) { | ||
const | ||
fnName = 'selected', | ||
ok = selectedValue.any(s => s.id === optionValue.id); | ||
dLog(fnName, ok, selectedValue, optionValue); | ||
return ok; | ||
} | ||
} |
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
Oops, something went wrong.