-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(zeroline): show SampledValueControl for IED and whole project (#477
) * feat(wizards/sampledvaluecontrol): add select wizard * feat(zeroline-pane): add button to trigger SMV select wizard * feat(zeroline/ied-editor): access SampledValueControl elements
- Loading branch information
1 parent
12c9123
commit 0253adc
Showing
12 changed files
with
779 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { html } from 'lit-element'; | ||
import { get } from 'lit-translate'; | ||
|
||
import { identity, isPublic, Wizard } from '../foundation.js'; | ||
|
||
export function selectSampledValueControlWizard(element: Element): Wizard { | ||
const smvControls = Array.from( | ||
element.querySelectorAll('SampledValueControl') | ||
).filter(isPublic); | ||
|
||
return [ | ||
{ | ||
title: get('wizard.title.select', { tagName: 'SampledValueControl' }), | ||
content: [ | ||
html`<filtered-list | ||
>${smvControls.map( | ||
smvControl => | ||
html`<mwc-list-item twoline value="${identity(smvControl)}" | ||
><span>${smvControl.getAttribute('name')}</span | ||
><span slot="secondary" | ||
>${identity(smvControl)}</span | ||
></mwc-list-item | ||
>` | ||
)}</filtered-list | ||
>`, | ||
], | ||
}, | ||
]; | ||
} |
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.