cl
2024-02-23 73bc0656dc15cd9cc95c6f4f51949ef0437088ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<div ng-controller="StencilController">
  <div class="subheader editor-toolbar" id="editor-header">
      <div class="btn-group">
        <div class="btn-toolbar pull-left" ng-controller="ToolbarController" ng-cloak>
            <button id="{{item.id}}"
                    title="{{item.title | translate}}"
                    ng-repeat="item in items"
                    ng-switch on="item.type"
                    class="btn btn-inverse" ng-class="{'separator': item.type == 'separator'}"
                    ng-disabled="item.type == 'separator' || item.enabled == false"
                    ng-click="toolbarButtonClicked($index)">
                <i ng-switch-when="button" ng-class="item.cssClass" class="toolbar-button" data-toggle="tooltip" title="{{item.title | translate}}"></i>
                <div ng-switch-when="separator" ng-class="item.cssClass"></div>
            </button>
            </div>
        </div>
  </div>
  <div class="full">
      <div class="row row-no-gutter">
          <div id="paletteHelpWrapper" class="col-xs-3">
              <div class="stencils" id="paletteSection">
                <div ng-if="stencilItemGroups.length > 1">
                    <div ng-repeat="group in stencilItemGroups">
 
                        <ul ng-if="group.visible && group.items" class="stencil-group"  ng-class="{collapsed: !group.expanded, 'first': $first}">
                            <li ng-include="'editor-app/partials/stencil-item-template.html?version=4'"></li>
                        </ul>
 
                        <div ng-if="!group.items" ng-include="'editor-app/partials/root-stencil-item-template.html?version=4'"></div>
 
                    </div>
                </div>
                <div ng-if="stencilItemGroups.length == 1">
                    <ul class="stencil-group">
                        <li ng-repeat="item in stencilItemGroups[0].paletteItems" class="stencil-item"
                             id="{{item.id}}"
                             title="{{item.description}}"
                             ng-model="draggedElement"
                             data-drag="true"
                             jqyoui-draggable="{onStart:'startDragCallback', onDrag:'dragCallback'}"
                             data-jqyoui-options="{revert: 'invalid', helper: 'clone', opacity : 0.5}">
                             
                            <img ng-src="editor-app/stencilsets/bpmn2.0/icons/{{item.icon}}" width="16px;" height="16px;"/>
                            {{item.name}}
                        </li>
                    </ul>
                 </div>
              </div>
          </div>
          <div id="canvasHelpWrapper" class="col-xs-9">
              <div class="canvas-wrapper" id="canvasSection" 
                  ng-model="droppedElement"
                  ng-model="droppedElement"
                  data-drop="true"
                  data-jqyoui-options
                  jqyoui-droppable="{onDrop:'dropCallback',onOver: 'overCallback', onOut: 'outCallback'}"> 
                <div class="canvas-message" id="model-modified-date"></div>
                <div class="Oryx_button" 
                     id="delete-button" 
                     title="{{'BUTTON.ACTION.DELETE.TOOLTIP' | translate}}"
                     ng-click="deleteShape()"
                     style="display:none">
                    <img src="editor-app/images/delete.png"/>
                </div>
                <div class="Oryx_button" 
                     id="morph-button"
                     title="{{'BUTTON.ACTION.MORPH.TOOLTIP' | translate}}"
                     ng-click="morphShape()"
                     style="display:none">
                    <img src="editor-app/images/wrench.png"/>
                </div>
                <div class="Oryx_button"
                     ng-repeat="item in quickMenuItems"
                     id="{{item.id}}"
                     title="{{item.description}}"
                     ng-click="quickAddItem(item.id)"
                     ng-model="draggedElement"
                     data-drag="true"
                     jqyoui-draggable="{onStart:'startDragCallbackQuickMenu', onDrag:'dragCallbackQuickMenu'}"
                     data-jqyoui-options="{revert: 'invalid', helper: 'clone', opacity : 0.5}"
                     style="display:none">
                     <img ng-src="editor-app/stencilsets/bpmn2.0/icons/{{item.icon}}"/>
                 </div>
             </div>
           </div>
           <div id="propertiesHelpWrapper" class="col-xs-9">
                <div class="propertySection" id="propertySection"
                    ng-class="{collapsed: propertyWindowState.collapsed}">
                    <div class="selected-item-section">
                        <div class="clearfix">
                            <div class="pull-right" ng-if="selectedItem.auditData.createDate">
                                <strong>{{'ELEMENT.DATE_CREATED' | translate}}: </strong> {{selectedItem.auditData.createDate}}
                            </div>
                            <div class="pull-right" ng-if="selectedItem.auditData.author">
                                <strong>{{'ELEMENT.AUTHOR' | translate}}: </strong> {{selectedItem.auditData.author}}
                            </div>
                            <div class="selected-item-title">
                                <a ng-click="propertyWindowState.toggle()"> 
                                    <i class="glyphicon" ng-class="{'glyphicon-chevron-right': propertyWindowState.collapsed, 'glyphicon-chevron-down': !propertyWindowState.collapsed}"></i>
                                    <span ng-show="selectedItem.title != undefined && selectedItem.title != null && selectedItem.title.length > 0">{{selectedItem.title}}</span> 
                                    <span ng-show="!selectedItem || selectedItem.title == undefined || selectedItem.title == null || selectedItem.title.length == 0">{{modelData.name}}</span>
                                </a>
                            </div>
                        </div>
                        <div class="selected-item-body">
                            <div>
                                 <div class="property-row" ng-repeat="property in selectedItem.properties"
                                    ng-click="propertyClicked($index)" ng-class="{'clear' : $index%2 == 0}">
                                    <span class="title" ng-if="!property.hidden">{{ property.title }}&nbsp;:</span>
                                    <span class="title-removed" ng-if="property.hidden"><i>{{ property.title }}&nbsp;({{'PROPERTY.REMOVED' | translate}})&nbsp;:</i></span>
                                    <span class="value"> 
                                        <ng-include
                                            src="getPropertyTemplateUrl($index)" ng-if="!property.hasReadWriteMode"></ng-include>
                                        <ng-include src="getPropertyReadModeTemplateUrl($index)"
                                            ng-if="property.hasReadWriteMode && property.mode == 'read'"></ng-include>
                                        <ng-include src="getPropertyWriteModeTemplateUrl($index)"
                                            ng-if="property.hasReadWriteMode && property.mode == 'write'"></ng-include>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>     
                </div>            
            </div>
         </div>
    </div>
</div>