2019-10-02 07:54:52 +00:00
|
|
|
|
2019-03-12 14:04:09 +00:00
|
|
|
<ul ng-if="::$ctrl.items">
|
2019-10-02 07:54:52 +00:00
|
|
|
<li ng-repeat="item in $ctrl.items" >
|
2019-10-01 09:15:15 +00:00
|
|
|
<div
|
2019-10-02 07:54:52 +00:00
|
|
|
on-drop="$ctrl.onDrop(item, dragged, dropped)"
|
|
|
|
vn-draggable="{{::$ctrl.draggable}}"
|
|
|
|
vn-droppable="{{::$ctrl.droppable}}"
|
|
|
|
ng-class="{expanded: item.active}"
|
2019-10-01 09:15:15 +00:00
|
|
|
ng-click="$ctrl.toggle($event, item)"
|
|
|
|
class="node clickable">
|
|
|
|
<vn-icon
|
|
|
|
class="arrow"
|
|
|
|
ng-class="{invisible: item.sons == 0}"
|
|
|
|
icon="keyboard_arrow_down"
|
|
|
|
translate-attr="{title: 'Toggle'}">
|
|
|
|
</vn-icon>
|
2019-10-02 07:54:52 +00:00
|
|
|
<vn-treeview-content
|
|
|
|
item="item"
|
|
|
|
transclude-func="$ctrl.transcludeFunc">
|
|
|
|
</vn-treeview-content>
|
|
|
|
<!--
|
|
|
|
<vn-check
|
2019-10-01 09:15:15 +00:00
|
|
|
vn-acl="{{$ctrl.aclRole}}"
|
|
|
|
ng-if="$ctrl.selectable"
|
|
|
|
field="item.selected"
|
|
|
|
disabled="$ctrl.disabled"
|
|
|
|
on-change="$ctrl.select(item, value)"
|
|
|
|
triple-state="true"
|
|
|
|
label="{{::item.name}}">
|
|
|
|
</vn-check>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="{{icon.icon}}"
|
|
|
|
ng-repeat="icon in $ctrl.icons"
|
|
|
|
ng-click="$ctrl.onIconClick(icon, item, $ctrl.parent, $parent.$index)"
|
|
|
|
vn-acl="{{$ctrl.aclRole}}"
|
|
|
|
vn-acl-action="remove">
|
2019-10-02 07:54:52 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
-->
|
2019-10-01 09:15:15 +00:00
|
|
|
</div>
|
2019-10-02 07:54:52 +00:00
|
|
|
<vn-treeview-childs
|
2019-10-01 09:15:15 +00:00
|
|
|
items="item.childs"
|
|
|
|
parent="item"
|
|
|
|
selectable="$ctrl.selectable"
|
|
|
|
disabled="$ctrl.disabled"
|
|
|
|
editable="$ctrl.editable"
|
|
|
|
draggable="::$ctrl.draggable"
|
|
|
|
droppable="::$ctrl.droppable"
|
|
|
|
icons="::$ctrl.icons"
|
|
|
|
parent-scope="::$ctrl.parentScope"
|
2019-10-02 07:54:52 +00:00
|
|
|
acl-role="$ctrl.aclRole"
|
|
|
|
transclude-func="$ctrl.transcludeFunc">
|
|
|
|
</vn-treeview-childs>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<!--
|
|
|
|
<li
|
|
|
|
ng-if="$ctrl.isInsertable && $ctrl.editable"
|
|
|
|
ng-click="$ctrl.onCreate($ctrl.parent)"
|
|
|
|
vn-acl="{{$ctrl.aclRole}}"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
<div class="node">
|
|
|
|
<vn-icon-button
|
|
|
|
icon="add_circle">
|
|
|
|
</vn-icon-button>
|
|
|
|
<div class="description" translate>
|
|
|
|
Create new one
|
2019-10-01 09:15:15 +00:00
|
|
|
</div>
|
2019-10-02 07:54:52 +00:00
|
|
|
</div>
|
|
|
|
</li>
|