|
110 | 110 | <div role="cell" class="gf-table-cells gf-table-cells-resizable" id="what"
|
111 | 111 | ng-mouseleave="shape.displayWhatEdit = false;" ng-mouseover="shape.displayWhatEdit = true;"
|
112 | 112 | ng-style="{'width' : editor.shapesTable.getWidth('what')}"
|
113 |
| - ng-attr-title="{{shape.getData().pattern}}"> |
| 113 | + ng-attr-title="{{shape.pattern}}"> |
114 | 114 | <div class="gf-table-content" ng-show="shape.whatEdit !== true"
|
115 | 115 | ng-dblclick="shape.whatEdit = true;">
|
116 |
| - {{shape.getData().pattern}} |
| 116 | + {{shape.pattern}} |
117 | 117 | </div>
|
118 | 118 | <div ng-show="shape.displayWhatEdit === true && shape.whatEdit !== true"
|
119 | 119 | ng-click="shape.whatEdit = true;$GF.setFocus(shape.uid + '-what');"
|
|
126 | 126 | title="Select a shape in diagram">
|
127 | 127 | </div>
|
128 | 128 | <input type="text" ng-show="shape.whatEdit === true" class="gf-form-input"
|
129 |
| - ng-model="shape.getData().pattern" style="margin-right: 2px;width : 100%" |
| 129 | + ng-model="shape.pattern" style="margin-right: 2px;width : 100%" |
130 | 130 | ng-attr-id="{{shape.uid + '-what'}}" ng-model-onblur
|
131 |
| - ng-blur="editor.onRulesChange();shape.whatEdit = false;" |
| 131 | + ng-blur="shape.whatEdit = false;" |
132 | 132 | bs-typeahead="rule.getShapeMapOptions().identByProp !== 'metadata' ? editor.getCellNamesTypeHead : editor.getCellNamesMD"
|
133 | 133 | data-min-length="0" data-items="100" data-placement="right" />
|
134 | 134 | </div>
|
135 | 135 | <!-- WHEN -->
|
136 | 136 | <div role="cell" class="gf-table-cells gf-table-cells-resizable" id="when"
|
137 | 137 | ng-mouseleave="shape.displayWhenEdit = false;" ng-mouseover="shape.displayWhenEdit = true;"
|
138 | 138 | ng-style="{'width' : editor.shapesTable.getWidth('when')}"
|
139 |
| - ng-attr-title="{{$GF.GetT4V( editor.colorOn, shape.getData().colorOn)}}"> |
| 139 | + ng-attr-title="{{$GF.GetT4V( editor.colorOn, shape.condition)}}"> |
140 | 140 | <div class="gf-table-content" style="text-align: left;" ng-show="shape.whenEdit !== true">
|
141 |
| - {{$GF.GetT4V( editor.colorOn, shape.getData().colorOn)}} |
| 141 | + {{$GF.GetT4V( editor.colorOn, shape.condition)}} |
142 | 142 | </div>
|
143 | 143 | <div ng-show="shape.displayWhenEdit === true && shape.whenEdit !== true"
|
144 | 144 | ng-click="shape.whenEdit = true;$GF.setFocus( shape.uid + '-when' )"
|
145 | 145 | class="gf-icon-action gf-icon-edit gf-icon-withcontent" title="Edit condition">
|
146 | 146 | </div>
|
147 |
| - <select class="gf-form-input" ng-model="shape.getData().colorOn" style="width:100%;" |
| 147 | + <select class="gf-form-input" ng-model="shape.condition" style="width:100%;" |
148 | 148 | ng-attr-id="{{shape.uid + '-when'}}"
|
149 |
| - ng-blur="editor.onRulesChange();shape.whenEdit = false;" |
150 |
| - ng-show="shape.whenEdit === true" ng-options="c.value as c.text for c in editor.colorOn" |
151 |
| - ng-change="editor.onRulesChange()"> |
| 149 | + ng-blur="shape.whenEdit = false;" |
| 150 | + ng-show="shape.whenEdit === true" ng-options="c.value as c.text for c in editor.colorOn"> |
152 | 151 | </select>
|
153 | 152 | </div>
|
154 | 153 | <!-- HOW -->
|
155 | 154 | <div role="cell" class="gf-table-cells gf-table-cells-resizable" id="how"
|
156 | 155 | ng-mouseleave="shape.displayHowEdit = false;" ng-mouseover="shape.displayHowEdit = true;"
|
157 | 156 | ng-style="{'width' : editor.shapesTable.getWidth('how')}"
|
158 |
| - ng-attr-title="{{$GF.GetT4V(editor.style, shape.getData().style)}}"> |
159 |
| - <!-- {{shape.getData().style}} --> |
| 157 | + ng-attr-title="{{$GF.GetT4V(editor.style, shape.style)}}"> |
160 | 158 | <div class="gf-table-content" style="text-align: left;" ng-show="shape.howEdit !== true">
|
161 |
| - {{$GF.GetT4V(editor.style, shape.getData().style)}} |
| 159 | + {{$GF.GetT4V(editor.style, shape.style)}} |
162 | 160 | </div>
|
163 | 161 | <div ng-show="shape.displayHowEdit === true && shape.howEdit !== true"
|
164 | 162 | ng-click="shape.howEdit = true;$GF.setFocus( shape.uid + '-how' );"
|
165 | 163 | class="gf-icon-action gf-icon-edit gf-icon-withcontent" title="Edit method">
|
166 | 164 | </div>
|
167 |
| - <select class="gf-form-input" ng-model="shape.getData().style" style="width:100%;" |
| 165 | + <select class="gf-form-input" ng-model="shape.style" style="width:100%;" |
168 | 166 | ng-attr-id="{{shape.uid + '-how'}}"
|
169 |
| - ng-blur="editor.onRulesChange();shape.howEdit = false;" ng-show="shape.howEdit === true" |
170 |
| - ng-options="c.value as c.text for c in editor.style" ng-change="editor.onRulesChange()"> |
| 167 | + ng-blur="shape.howEdit = false;" ng-show="shape.howEdit === true" |
| 168 | + ng-options="c.value as c.text for c in editor.style"> |
171 | 169 | </select>
|
172 | 170 | <!-- <div style="display:inline-block;">
|
173 | 171 | <div class="gf-icon-fill gf-icon-action" * ng-click="selectStyle = true;"
|
|
186 | 184 | ng-style="{'width' : editor.shapesTable.getWidth('actions')}">
|
187 | 185 | <div class="gf-table-content gf-unselectable"
|
188 | 186 | style="text-align: left;justify-content: center;">
|
189 |
| - <div ng-click="editor.removeShapeMap(rule,$index);editor.onRulesChange()" |
| 187 | + <div ng-click="ruleremoveShapeMap(shape)" |
190 | 188 | title="Delete this mapping object" class="gf-icon-action gf-icon-remove">
|
191 | 189 | </div>
|
192 | 190 | <div title="Duplicate this mapping"
|
193 |
| - ng-click="shape.isHidden() ? shape.show(): shape.hide();editor.onRulesChange()" |
| 191 | + ng-click="shape.hidden=!shape.hidden" |
194 | 192 | title="Enable/Disable this mapping" class="gf-icon-action"
|
195 |
| - ng-class="{'gf-icon-show': !shape.isHidden(), 'gf-icon-hide': shape.isHidden()}"> |
| 193 | + ng-class="{'gf-icon-show': !shape.hidden, 'gf-icon-hide': shape.hidden}"> |
196 | 194 | </div>
|
197 | 195 | <div ng-click="editor.flowchartHandler.setMap(shape, rule.getShapeMapOptions())"
|
198 | 196 | title="Select a shape in diagram" class="gf-icon-action"
|
199 | 197 | ng-class="{'gf-icon-target': !editor.flowchartHandler.isMapping(shape), 'gf-icon-empty': editor.flowchartHandler.isMapping(shape)}">
|
200 | 198 | </div>
|
201 |
| - <div ng-click="rule.cloneShapeMap(shape);editor.onRulesChange();" |
| 199 | + <div ng-click="rule.cloneShapeMap(shape)" |
202 | 200 | title="Duplicate this mapping" class="gf-icon-action gf-icon-clone">
|
203 | 201 | </div>
|
204 | 202 | </div>
|
|
0 commit comments