| //- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| .le-body |
| .le-row( |
| ng-repeat='item in $ctrl.ngModel.$viewValue track by $ctrl.id(item, $index)' |
| ng-class=`{ |
| 'le-row--editable': $ctrl.isEditView($ctrl.id(item, $index)), |
| 'le-row--has-item-view': $ctrl.hasItemView |
| }`) |
| |
| .le-row-sort |
| button.btn-ignite.btn-ignite--link-dashed-secondary |
| svg(ignite-icon='sort') |
| |
| .le-row-index |
| span {{ $index+1 }} |
| |
| .le-row-item |
| .le-row-item-view(ng-if='$ctrl.hasItemView && !$ctrl.isEditView($ctrl.id(item, $index))' ng-click='$ctrl.startEditView($ctrl.id(item, $index))') |
| div(list-editable-transclude='itemView') |
| div( |
| ng-if='!$ctrl.hasItemView || $ctrl.isEditView($ctrl.id(item, $index))' |
| ignite-on-focus-out='$ctrl.stopEditView(item, $ctrl.id(item, $index), form)' |
| ignite-on-focus-out-ignored-classes='bssm-click-overlay bssm-item-text bssm-item-button' |
| ) |
| .le-row-item-view(ng-show='$ctrl.hasItemView' ng-init='$ctrl.startEditView($ctrl.id(item, $index));item = $ctrl.getEditView($ctrl.id(item, $index))') |
| div(list-editable-transclude='itemView') |
| .le-row-item-edit(ng-form name='form') |
| div(list-editable-transclude='itemEdit') |
| |
| .le-row-cross |
| button.btn-ignite.btn-ignite--link-dashed-secondary(type='button' ng-click='$ctrl.remove($ctrl.id(item, $index))') |
| svg(ignite-icon='cross') |
| |
| .le-row(ng-hide='$ctrl.ngModel.$viewValue.length') |
| .le-row-item(ng-transclude='noItems') |