WIP: current output styling

This commit is contained in:
Joel McKinnon 2019-12-27 13:20:21 -08:00
parent 308ae2cb2e
commit d38e2c49cb
8 changed files with 73 additions and 13 deletions

View File

@ -43,7 +43,7 @@
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry) openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
); );
openmct.install(openmct.plugins.Espresso()); openmct.install(openmct.plugins.Snow());
openmct.install(openmct.plugins.MyItems()); openmct.install(openmct.plugins.MyItems());
openmct.install(openmct.plugins.LocalStorage()); openmct.install(openmct.plugins.LocalStorage());
openmct.install(openmct.plugins.Generator()); openmct.install(openmct.plugins.Generator());

View File

@ -50,7 +50,7 @@ export default class ConditionSetViewProvider {
}, },
provide: { provide: {
openmct, openmct,
domainObject, // domainObject,
objectPath objectPath
}, },
data() { data() {

View File

@ -40,7 +40,7 @@ export default {
}, },
data() { data() {
return { return {
conditionData: {} expanded: true
}; };
}, },
methods: { methods: {

View File

@ -2,7 +2,7 @@
<div class="c-object-view u-contents"> <div class="c-object-view u-contents">
<div class="c-sw-edit w-summary-widget"> <div class="c-sw-edit w-summary-widget">
<div class="c-sw-edit__ui holder"> <div class="c-sw-edit__ui holder">
<CurrentOutput /> <CurrentOutput :currentOutput="mockCurrentOutput"/>
<TestData :is-editing="isEditing" /> <TestData :is-editing="isEditing" />
<ConditionCollection :is-editing="isEditing" /> <ConditionCollection :is-editing="isEditing" />
</div> </div>
@ -24,6 +24,11 @@ export default {
}, },
props: { props: {
isEditing: Boolean isEditing: Boolean
},
data() {
return {
mockCurrentOutput: 'DATA_PRESENT'
}
} }
}; };
</script> </script>

View File

@ -2,11 +2,15 @@
<section id="current-output" <section id="current-output"
class="current-output" class="current-output"
> >
<div class="c-sw-edit__ui__header"> <div class="c-cs__ui__header">
<span class="c-sw-edit__ui__header-label">Current Output</span> <span class="c-cs__ui__header-label">Current Output</span>
<span
class="c-disclosure-triangle is-enabled flex-elem"
:class="{'c-disclosure-triangle--expanded': expanded}"
></span>
</div> </div>
<div class="t-test-data-config"> <div class="c-cs__ui_text">
<span>{{ conditionData.currentOutput }}</span> <span>{{ currentOutput }}</span>
</div> </div>
</section> </section>
</template> </template>
@ -15,13 +19,12 @@
export default { export default {
inject: ['openmct'], inject: ['openmct'],
props: { props: {
currentOutput: String,
isEditing: Boolean isEditing: Boolean
}, },
data() { data() {
return { return {
conditionData: { expanded: true,
currentOutput: 'DATA_PRESENT'
}
}; };
}, },
methods: { methods: {

View File

@ -41,10 +41,11 @@ export default {
}, },
data() { data() {
return { return {
conditionData: {} expanded: true,
}; };
}, },
methods: { methods: {
} }
} }
</script> </script>

View File

@ -0,0 +1,50 @@
.c-cs__ui__header {
background-color: #D0D1D3;
padding: .3em .5em;
text-transform: uppercase;
font-size: 0.8em;
font-weight: bold;
color: #7C7D80;
}
.c-cs__ui_text {
padding: .5em .5em;
text-transform: uppercase;
font-size: 0.8em;
font-weight: bold;
color: #7C7D80;
}
.c-disclosure-triangle {
$d: 8px;
color: $colorDisclosureCtrl;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: $d;
position: relative;
&.is-enabled {
cursor: pointer;
&:hover {
color: $colorDisclosureCtrlHov;
}
&:before {
$s: .5;
content: $glyph-icon-arrow-up;
display: block;
font-family: symbolsfont;
font-size: 1rem * $s;
}
}
&--expanded {
&:before {
transform: rotate(180deg);
}
}
}

View File

@ -1,5 +1,6 @@
@import "../api/overlays/components/dialog-component.scss"; @import "../api/overlays/components/dialog-component.scss";
@import "../api/overlays/components/overlay-component.scss"; @import "../api/overlays/components/overlay-component.scss";
@import "../plugins/conditionSet/components/current-output.scss";
@import "../plugins/displayLayout/components/box-view.scss"; @import "../plugins/displayLayout/components/box-view.scss";
@import "../plugins/displayLayout/components/display-layout.scss"; @import "../plugins/displayLayout/components/display-layout.scss";
@import "../plugins/displayLayout/components/edit-marquee.scss"; @import "../plugins/displayLayout/components/edit-marquee.scss";