[Common UI] Initial commonUI bundles
Bring in work on general-purpose and over-arching user interface bundles from the sandbox transition branch. WTD-574.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<span ng-controller="EditActionController">
|
||||
<span ng-repeat="currentAction in editActions">
|
||||
<a class='btn'
|
||||
ng-click="currentAction.perform()"
|
||||
ng-class="{ major: $index === 0, subtle: $index !== 0 }">
|
||||
{{currentAction.getMetadata().name}}
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
33
platform/commonUI/edit/res/templates/edit-object.html
Normal file
33
platform/commonUI/edit/res/templates/edit-object.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<span ng-controller="ViewSwitcherController">
|
||||
<mct-include key="'topbar-edit'"
|
||||
parameters="{ switcher: switcher, object: domainObject }">
|
||||
</mct-include>
|
||||
<div class="holder edit-area outline abs">
|
||||
<!-- edit toolbar goes here -->
|
||||
<div class='split-layout vertical contents abs work-area'>
|
||||
<div class='split-pane-component edit-main pane' style="right: 200px; left: 0px;">
|
||||
<div class='holder abs object-holder'>
|
||||
<mct-representation key="switcher.selected.key" mct-object="domainObject">
|
||||
</mct-representation>
|
||||
</div>
|
||||
</div>
|
||||
<div class="splitter" style="right: 200px"></div>
|
||||
<div class='split-pane-component edit-objects pane menus-to-left'
|
||||
style="right: 0px; width: 200px">
|
||||
<div class='holder abs split-layout horizontal'>
|
||||
|
||||
<mct-container key="accordion" title="Library" style="position: relative; top: 0px;">
|
||||
<mct-representation key="'tree'" mct-object="context.getRoot()">
|
||||
</mct-representation>
|
||||
</mct-container>
|
||||
|
||||
<mct-container key="accordion" title="Elements" style="position: relative; top: 200px;">
|
||||
<mct-representation key="'edit-elements'" mct-object="domainObject">
|
||||
</mct-representation>
|
||||
</mct-container>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
10
platform/commonUI/edit/res/templates/edit.html
Normal file
10
platform/commonUI/edit/res/templates/edit.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div content="jquery-wrapper"
|
||||
class="abs holder-all edit-mode"
|
||||
ng-controller="EditController">
|
||||
|
||||
<mct-representation key="'edit-object'" mct-object="navigatedObject">
|
||||
</mct-representation>
|
||||
|
||||
<mct-include key="'bottombar'"></mct-include>
|
||||
|
||||
</div>
|
||||
11
platform/commonUI/edit/res/templates/elements.html
Normal file
11
platform/commonUI/edit/res/templates/elements.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<div class="current-elements abs" style="height: 100%;">
|
||||
<!--p class="hint">Drop objects here to add them...</p-->
|
||||
<ul class="tree">
|
||||
<li ng-repeat="containedObject in composition">
|
||||
<span class="tree-item">
|
||||
<mct-representation key="'label'" mct-object="containedObject">
|
||||
</mct-representation>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
4
platform/commonUI/edit/res/templates/library.html
Normal file
4
platform/commonUI/edit/res/templates/library.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<mct-representation key="'tree'"
|
||||
mct-object="parameters.domainObject"
|
||||
parameters="parameters">
|
||||
</mct-representation>
|
||||
17
platform/commonUI/edit/res/templates/topbar-edit.html
Normal file
17
platform/commonUI/edit/res/templates/topbar-edit.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class='top-bar edit abs'>
|
||||
<mct-representation key="'object-header'" mct-object="parameters.object" parameters="{ mode: 'Edit' }">
|
||||
</mct-representation>
|
||||
<div class='buttons-main btn-bar buttons abs'>
|
||||
<mct-include key="'switcher'"
|
||||
ng-model="parameters.switcher"
|
||||
ng-if="parameters.switcher.options.length > 0">
|
||||
</mct-include>
|
||||
<mct-representation key="'edit-action-buttons'"
|
||||
mct-object="parameters.object"
|
||||
class='conclude-editing'>
|
||||
<!--a class='btn major' href=''>Save<span id='save-actions-menu' class='ui-symbol invoke-menu'>v</span></a>
|
||||
<a class='btn subtle' href=''>Cancel</a-->
|
||||
|
||||
</mct-representation>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user