File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ export const officialPlugins = [
322
322
} ,
323
323
{
324
324
name : 'Sitipe' ,
325
- src : '/src/editors/Sitipe.js' ,
325
+ src : '/src/compas- editors/Sitipe.js' ,
326
326
icon : 'precision_manufacturing' ,
327
327
default : true ,
328
328
kind : 'editor' ,
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ export default class SitipePlugin extends LitElement {
9
9
@property ( { attribute : false } )
10
10
doc ! : XMLDocument ;
11
11
12
+ @property ( {
13
+ type : Number ,
14
+ } )
15
+ editCount = - 1 ;
16
+
12
17
header ( ) : string {
13
18
return 'Sitipe' ;
14
19
}
@@ -23,6 +28,7 @@ export default class SitipePlugin extends LitElement {
23
28
html `<sitipe-substation
24
29
.doc = ${ this . doc }
25
30
.element = ${ substation }
31
+ .editCount = ${ this . editCount }
26
32
> </ sitipe-substation> `
27
33
) }
28
34
</ section> `
Original file line number Diff line number Diff line change @@ -374,6 +374,11 @@ export class SitipeBay extends LitElement {
374
374
@property ( )
375
375
bayTypicals : BayTypical [ ] = [ ] ;
376
376
377
+ @property ( {
378
+ type : Number ,
379
+ } )
380
+ editCount = - 1 ;
381
+
377
382
@property ( )
378
383
namingStrategy : NamingStrategy = defaultNamingStrategy ;
379
384
@@ -567,21 +572,11 @@ export class SitipeBay extends LitElement {
567
572
this . importIED ( ied ) ;
568
573
569
574
if ( iedName || oldIEDName ) {
570
- console . log ( 'just before createelement' ) ;
571
- console . log ( 'doc element: ' , this . doc . documentElement ) ;
572
-
573
575
const privateIEDRef : Element = createElement ( this . doc , 'Private' , {
574
576
type : SIEMENS_SITIPE_IED_TEMPLATE_REF ,
575
577
} ) ;
576
578
privateIEDRef . textContent = btComponent . name || oldIEDName ;
577
579
578
- console . log (
579
- 'Adding private iedRef element' ,
580
- privateIEDRef ,
581
- 'to ied: ' ,
582
- ied
583
- ) ;
584
-
585
580
this . dispatchEvent (
586
581
newActionEvent ( {
587
582
title : get ( 'editing.import' , { name : ied . getAttribute ( 'name' ) ! } ) ,
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ export class SitipeSubstation extends LitElement {
57
57
@property ( { attribute : false } )
58
58
element ! : Element ;
59
59
60
+ @property ( {
61
+ type : Number ,
62
+ } )
63
+ editCount = - 1 ;
64
+
60
65
@property ( )
61
66
namingStrategy : NamingStrategy = defaultNamingStrategy ;
62
67
@@ -104,6 +109,7 @@ export class SitipeSubstation extends LitElement {
104
109
.bayTypicals = ${ this . bayTypicals }
105
110
.doc = ${ this . doc }
106
111
.namingStrategy = ${ this . namingStrategy }
112
+ .editCount = ${ this . editCount }
107
113
> </ sitipe-bay> ` ;
108
114
}
109
115
You can’t perform that action at this time.
0 commit comments