-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcustom-elements.json
More file actions
1933 lines (1933 loc) · 75.9 KB
/
custom-elements.json
File metadata and controls
1933 lines (1933 loc) · 75.9 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "base-filter-dialog.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BaseFilterDialog",
"members": [
{
"kind": "field",
"name": "open",
"attribute": "open"
},
{
"kind": "field",
"name": "inclusiveSelectorsVals",
"default": "[]"
},
{
"kind": "field",
"name": "inclusiveSelectorsExcept",
"default": "[]"
},
{
"kind": "field",
"name": "inclusiveAttributesVals",
"default": "[]"
},
{
"kind": "field",
"name": "inclusiveAttributesExcept",
"default": "[]"
},
{
"kind": "field",
"name": "inclusiveNamespacesVals",
"default": "[]"
},
{
"kind": "field",
"name": "inclusiveNamespacesExcept",
"default": "[]"
},
{
"kind": "field",
"name": "exclusiveSelectorsVals",
"default": "[]"
},
{
"kind": "field",
"name": "exclusiveSelectorsExcept",
"default": "[]"
},
{
"kind": "field",
"name": "exclusiveAttributesVals",
"default": "[]"
},
{
"kind": "field",
"name": "exclusiveAttributesExcept",
"default": "[]"
},
{
"kind": "field",
"name": "exclusiveNamespacesVals",
"default": "[]"
},
{
"kind": "field",
"name": "exclusiveNamespacesExcept",
"default": "[]"
},
{
"kind": "field",
"name": "dialog",
"type": {
"text": "MdDialog | undefined"
}
},
{
"kind": "field",
"name": "infoDialog",
"type": {
"text": "InfoDialog | undefined"
}
},
{
"kind": "field",
"name": "warningDialog",
"type": {
"text": "InfoDialog | undefined"
}
},
{
"kind": "field",
"name": "#oldBase",
"privacy": "private",
"type": {
"text": "BaseFilter | undefined"
}
},
{
"kind": "field",
"name": "base",
"attribute": "base"
},
{
"kind": "method",
"name": "dispatchSaveEvent"
},
{
"kind": "method",
"name": "resetDialog"
},
{
"kind": "method",
"name": "showHelpDialog"
}
],
"events": [
{
"name": "oscd-diff-base-filter-save",
"type": {
"text": "CustomEvent"
}
}
],
"attributes": [
{
"name": "open",
"fieldName": "open"
},
{
"name": "base",
"fieldName": "base"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "base-filter-dialog",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BaseFilterDialog",
"declaration": {
"name": "BaseFilterDialog",
"module": "base-filter-dialog.ts"
}
},
{
"kind": "custom-element-definition",
"name": "base-filter-dialog",
"declaration": {
"name": "BaseFilterDialog",
"module": "base-filter-dialog.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "default-filters.ts",
"declarations": [
{
"kind": "variable",
"name": "defaultBaseFilters",
"type": {
"text": "BaseFilter"
},
"default": "{ inclusive: { selectors: { vals: [], except: [], }, attributes: { vals: exceptions, except: excludedIdentifiers, }, namespaces: { vals: [], except: [], }, }, exclusive: { selectors: { vals: [], except: [], }, attributes: { vals: excludedIdentifiers, except: exceptions, }, namespaces: { vals: [], except: [], }, }, }"
},
{
"kind": "function",
"name": "extendFilter",
"return": {
"type": {
"text": "Filter"
}
},
"parameters": [
{
"name": "base",
"type": {
"text": "BaseFilter"
}
},
{
"name": "filter",
"type": {
"text": "Filter"
}
}
]
},
{
"kind": "variable",
"name": "defaultFilters",
"type": {
"text": "Record<string, Filter>"
},
"default": "{ Complete: { description: 'Compare everything in all namespaces', ourSelector: '', theirSelector: '', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'Complete: Without Text/desc': { description: 'Compare everything but without Text elements and desc attributes', ourSelector: '', theirSelector: '', selectors: { inclusive: false, vals: ['Text'], except: [], }, attributes: { inclusive: false, vals: ['desc'], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'Complete: SCL Only (no Privates)': { description: 'Compare the SCL namespace (but not Private elements or other namespaced items)', ourSelector: '', theirSelector: '', selectors: { inclusive: false, vals: ['Private'], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: true, vals: ['http://www.iec.ch/61850/2003/SCL'], except: [], }, }, Header: { description: 'Compare versioning and history items', ourSelector: 'Header', theirSelector: 'Header', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, Substation: { description: 'Compare single line diagram and specification functionality', ourSelector: 'Substation', theirSelector: 'Substation', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'Communication: Complete': { description: '', ourSelector: 'Communication', theirSelector: 'Communication', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'Communication: IP Addresses and MMS Session': { description: 'Compare IP address, subnet and gateway and MMS session parameters', ourSelector: 'Communication', theirSelector: '', selectors: { inclusive: true, vals: [ 'Communication', 'Communication > SubNetwork', 'Communication > SubNetwork > ConnectedAP', 'Communication > SubNetwork > ConnectedAP > Address', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"IP\"]', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"IP\"] *', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"IP-SUBNET\"]', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"IP-SUBNET\"] *', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"IP-GATEWAY\"]', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"IP-GATEWAY\"] *', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"OSI-TSEL\"]', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"OSI-TSEL\"] *', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"OSI-SEL\"]', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"OSI-SEL\"] *', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"OSI-SSEL\"]', 'Communication > SubNetwork > ConnectedAP > Address > P[type=\"OSI-SSEL\"] *', ], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'Communication: Multicast Traffic Addressing': { description: 'Compare Communication GSE and SMV elements (MAC, VLAN, priority etc.)', ourSelector: 'Communication', theirSelector: '', selectors: { inclusive: true, vals: [ 'Communication', 'Communication > SubNetwork', 'Communication > SubNetwork > ConnectedAP', 'Communication > SubNetwork > ConnectedAP > GSE', 'Communication > SubNetwork > ConnectedAP > SMV', 'Communication > SubNetwork > ConnectedAP > GSE > Address', 'Communication > SubNetwork > ConnectedAP > SMV > Address', 'Communication > SubNetwork > ConnectedAP > GSE > Address > P[type=\"VLAN-ID\"]', 'Communication > SubNetwork > ConnectedAP > GSE > Address > P[type=\"VLAN-PRIORITY\"]', 'Communication > SubNetwork > ConnectedAP > GSE > Address > P[type=\"MAC-Address\"]', 'Communication > SubNetwork > ConnectedAP > SMV > Address > P[type=\"VLAN-ID\"]', 'Communication > SubNetwork > ConnectedAP > SMV > Address > P[type=\"VLAN-PRIORITY\"]', 'Communication > SubNetwork > ConnectedAP > SMV > Address > P[type=\"MAC-Address\"]', ], except: ['AccessPoint'], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'Communication: SCL without Privates': { description: 'Compare only the Communication section in the SCL namespace without Privates (does not de-reference to AccessPoint)', ourSelector: 'Communication', theirSelector: 'Communication', selectors: { inclusive: false, vals: ['Private', 'AccessPoint'], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: true, vals: ['http://www.iec.ch/61850/2003/SCL'], except: [], }, }, 'IED: All - Complete': { description: 'Compare all IED in all namespaces', ourSelector: 'IED', theirSelector: '', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'IED: All - Only SCL namespace without DataTypes or Privates': { description: 'Compare all IEDs, only in the SCL namespace and without referencing DataTypes or look into Private elements', ourSelector: 'IED', theirSelector: '', selectors: { inclusive: false, vals: ['Private'], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: true, vals: ['http://www.iec.ch/61850/2003/SCL'], except: [], }, }, 'IED: Compare Two IEDs': { description: 'Allow comparison of two IEDs in the same or a different file (requires user modification)', ourSelector: 'IED[name=\"Put first IED name here\"]', theirSelector: 'IED[name=\"Put second IED name here\"]', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'IED: Individual': { description: 'Compare a specific IED (requires user modification)', ourSelector: 'IED[name=\"Put your IED name here\"]\\n', theirSelector: '', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'IED: MMS Report Content': { description: 'Compare ReportControl elements within each IED (buffered and unbuffered)', ourSelector: 'ReportControl', theirSelector: '', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, 'IED: Subscriptions and Supervisions': { description: 'Compare subscriptions (Inputs and External References) and supervision references (LGOS and LSVS Logical Nodes)', ourSelector: 'IED\\n', theirSelector: '', selectors: { inclusive: true, vals: [ 'IED', 'IED > AccessPoint', 'IED > AccessPoint > Server', 'IED > AccessPoint > Server > LDevice', 'IED > AccessPoint > Server > LDevice > LN0', 'IED > AccessPoint > Server > LDevice > LN', 'IED > AccessPoint > Server > LDevice > LN0 > Inputs', 'IED > AccessPoint > Server > LDevice > LN > Inputs', 'IED > AccessPoint > Server > LDevice > LN0 > Inputs > ExtRef', 'IED > AccessPoint > Server > LDevice > LN > Inputs > ExtRef', 'IED > AccessPoint > Server > LDevice > LN[lnClass=\"LGOS\"]', 'IED > AccessPoint > Server > LDevice > LN[lnClass=\"LSVS\"]', 'IED > AccessPoint > Server > LDevice > LN[lnClass=\"LGOS\"] *', 'IED > AccessPoint > Server > LDevice > LN[lnClass=\"LSVS\"] *', ], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: false, vals: [], except: [], }, }, DataTypeTemplates: { description: 'Compare data type definitions (only SCL namespace)', ourSelector: 'DataTypeTemplates', theirSelector: '', selectors: { inclusive: false, vals: [], except: [], }, attributes: { inclusive: false, vals: [], except: [], }, namespaces: { inclusive: true, vals: ['http://www.iec.ch/61850/2003/SCL'], except: [], }, }, }"
}
],
"exports": [
{
"kind": "js",
"name": "defaultBaseFilters",
"declaration": {
"name": "defaultBaseFilters",
"module": "default-filters.ts"
}
},
{
"kind": "js",
"name": "extendFilter",
"declaration": {
"name": "extendFilter",
"module": "default-filters.ts"
}
},
{
"kind": "js",
"name": "defaultFilters",
"declaration": {
"name": "defaultFilters",
"module": "default-filters.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "default-help-base-dialog-content.ts",
"declarations": [
{
"kind": "variable",
"name": "DefaultHelpBaseDialogContent",
"default": "` <h3>Base Comparison Rules Help</h3> <p>Base rules apply to all rules.</p> <p>One of the two groups of filters shown below will applied to each set of comparison rules on dependent rules. If a rule is set to \"exclusive\" mode (default), then the corresponding rule set from the \"Exclude Rules\" section will be applied. If a rule is set to \"inclusive\" mode, then the corresponding rule set from the \"Include Rules\" section will be applied.</p> <p>The default settings are to ensure that naming identifiers don't prevent comparisons between objects (e.g. IEDs with a different name for example). Use the \"Reset\" button in the footer to discard all saved changes and revert to the the defaults.</p> `"
}
],
"exports": [
{
"kind": "js",
"name": "DefaultHelpBaseDialogContent",
"declaration": {
"name": "DefaultHelpBaseDialogContent",
"module": "default-help-base-dialog-content.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "default-help-dialog-content.ts",
"declarations": [
{
"kind": "variable",
"name": "DefaultHelpDialogContent",
"default": "` <h3>Basic metadata</h3> <ul> <li>Name - appears in the filter drop-down list.</li> <li> Description (optional) - additional information on the filter settings or intended usage. </li> </ul> <h3>Scope</h3> <p>The scope defines the root of the comparison.</p> <p>For a complete comparison this may be left empty.</p> <p> The Scope is a CSS selector (see <a href=\"https://developer.mozilla.org/en-US/docs/Web/XML/XPath/Guides/Comparison_with_CSS_selectors\" >MDN</a > for more information) and can be used to specify particular elements. </p> <p>For example between two IEDs:</p> Scope: <code>IED[name="XAT_BusA_P1"]</code> <p>The "Scope" lines up with the "To and From documents"</p> <!-- Would this ever work? It's not just a pure rename. Is it any better than just having the default \"Substation\" filter which compares only \"Substation\" elements? Daniel thinks it would because if the Substation name isn't in the comparison then it should, however it doesn't seem to work properly at the moment, perhaps the Substation name attribute is incorrectly included in the comparison? --> <h3 id=\"include-and-exclude-filters\">Include and Exclude Rules</h3> <p> The five different text fields allow fine-grained comparisons. Examples are given for the Substation section but could just as easily be given for IEDs. </p> <p> SCL elements, attributes and namespaces used in the file can be either "Include" or "Exclude" rules. By default matching elements are excluded. To only include matching artifacts, click on the "Include" radio button. </p> <p>This appears as:</p> <table rules=\"all\"> <thead> <tr> <th>Exclude</th> <th>Except</th> </tr> </thead> <tbody> <tr> <td>???</td> <td>???</td> </tr> </tbody> </table> <p> To swap them around, selected the "Include" radio button. The filters then become: </p> <table rules=\"all\"> <thead> <tr> <th>Include</th> <th>Except</th> </tr> </thead> <tbody> <tr> <td>???</td> <td>???</td> </tr> </tbody> </table> <p> The rules are given as CSS Selector expressions. These are often more simple than equivalent XPath expressions. Learn more about the differences and how to use these on <a href=\"https://developer.mozilla.org/en-US/docs/Web/XML/XPath/Guides/Comparison_with_CSS_selectors\" >MDN</a > or make a start with the examples below. </p> <p> It is recommended to study the default rules and to create rules initially with small files in an incremental manner to understand them clearly. </p> <h4 id=\"elements\">Elements</h4> <p> The following would include everything but exclude a particular <code>VoltageLevel</code> named <code>V33</code>: </p> <table rules=\"all\"> <thead> <tr> <th>Exclude</th> <th>Except</th> </tr> </thead> <tbody> <tr> <td><code>VoltageLevel[name="V33"]</code></td> </tr> </tbody> </table> <p> To swap the filter so that it only includes <em>only</em> the <code>VoltageLevel</code> <code>V33</code> only would click on the "Include" radio button. </p> <p>Now the meaning of the text boxes have changed to:</p> <table rules=\"all\"> <thead> <tr> <th>Include</th> <th>Except</th> </tr> </thead> <tbody> <tr> <td><code>VoltageLevel[name="V33"]</code></td> </tr> </tbody> </table> <p> The "Except" input is especially useful when querying a broad "outer element". For instance, imagine a user wanting to compare all <code>VoltageLevel</code> elements but not one specific one: </p> <table rules=\"all\"> <thead> <tr> <th>Include</th> <th>Except</th> </tr> </thead> <tbody> <tr> <td><code>VoltageLevel</code></td> <td><code>VoltageLevel[name="V33]</code></td> </tr> </tbody> </table> <p> If your SCL had multiple <code>Substation</code> elements in it, we could specify the particular one to compare using a child combinator. For example: </p> <p> <code >Substation[name="XAT"] > VoltageLevel[name="V33]</code > </p> <h5 id=\"ensuring-elements-are-connected\">Ensuring Elements are Connected</h5> <p> If complex selectors are used then the user must ensure the there is a hierarchial path between the elements. </p> <p> For example, the <code>GSE</code> element within the <code>Communication</code> section sits within the <code>SubNetwork</code> and <code>ConnectedAP</code> elements as defined by the standard. </p> <p> If specifying to "Include" Elements, then all ancestors of the GSE element need to be included as well for the filter to function correctly. </p> <p>The filter settings would be:</p> <ul> <li>From: <code>Communication</code></li> <li>Elements: select the "Include" radio button</li> <li> Under include: <pre><code> <span class=\"hljs-keyword\">SubNetwork </span> ConnectedAP GSE GSE * </code></pre> </li> </ul> <p> The last selector, <code>GSE *</code> is a combination of all <code>GSE</code> elements, the "descendant combinator" which is a space and means any ancestor matching the first selector and a universal selector, <code>*</code> which matches elements of any type. </p> <h5 id=\"other-usages\">Other usages</h5> <p> Many IEDs place information in a <code>Private</code> elements. This may not be human readable in some cases. To exclude these from a comparison, place <code>Private</code> in the "Exclude" elements field. </p> <h4 id=\"attributes\">Attributes</h4> <p> Attributes work much like elements in that rules can be either inclusive or exclusive. </p> <p> One use case could be to exclude descriptions. In SCL many elements have a <code>desc</code> attribute but this is sometimes overwritten by an IED Configuration Tool (ICT). To ignore these differences, on an exclusive rule, enter <code>desc</code> in the "Exclude" field. </p> <h4 id=\"namespaces\">Namespaces</h4> <p>By default all namespaces are included.</p> <p> This plugin requires namespaces to be entered as their fully qualified URLs. </p> <p>To exclude other manufacturers, enter their fully qualified namespace:</p> <p> <a href=\"http://www.ManufacturerA.com/Some/More/Detail\" >http://www.ManufacturerA.com/Some/More/Detail</a > </p> <h4 id=\"namespaced-elements\">Namespaced Elements</h4> <p> Namespaced elements can be included in the Elements field in the following form: </p> <pre><code><span class=\"hljs-symbol\">https:</span><span class=\"hljs-comment\">//a.com:DO</span> </code></pre> <p> Where this means a DO element in the <code>https://a.com</code> namespace. </p> <h2 id=\"other-notes\">Other Notes</h2> <p> Extension namespace information within <code>Private</code> elements cannot be interpreted by this plugin except by string comparison as their structure is unknown (not defined by IEC 61850-6). </p> `"
}
],
"exports": [
{
"kind": "js",
"name": "DefaultHelpDialogContent",
"declaration": {
"name": "DefaultHelpDialogContent",
"module": "default-help-dialog-content.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "default-info-dialog-content.ts",
"declarations": [
{
"kind": "variable",
"name": "DefaultInfoDialogContent",
"default": "` <p> The compare plugin allows for a complete comparison of two SCL documents and gives a hierarchial list of differences using the SCL structure shown in IEC 61850-6. </p> <p> Users may compare only particular elements and specify these in considerable detail. Comparisons can occur within a document or between two documents. Pre-defined comparison rules are available for common use cases and users may create new comparison rules as well as export and import rules to allow them to be shared (the rules are saved as JSON files). </p> <p> Comparisons on large files may take a considerable time - 10-15 minutes on a high powered machine with 16 Gb RAM and no other browser tabs or applications open. SCL files for even small substations can have many hundreds of thousands of elements. Comparisons between files with only a small number of IEDs should take < 10 seconds. </p> <p> It is recommended to create filters to ensure performant queries and targeted results. </p> <p> While the comparison is being done the user interface may become unresponsive, and a message asking whether the user would like to wait may come up. Either the user can click "Wait" or just ignore this message - the comparison will continue to occur in the background. </p> <p> Once a comparison is complete, click on the print icon on the left to either print or export to PDF. The full-screen button maximises the view to take up the full browser window. </p> <h2 id=\"quick-start\">Quick Start</h2> <p> At the top, a set of predefined comparison rules for common tasks are provided. Click the three dots on the right to duplicate/delete or to import/export the filters. </p> <p> If using small files with only a few IEDs (e.g. SSD, ICD and CID files or SCD files with just a few IEDs) then choose the "Complete" filter. </p> <p>Then select the 'From' and 'To' documents.</p> <p> The colours of the document icons here are used to show where the changes are, if changes are only in the first document colour it indicates removals and if changes are in the second document colour it indicates additions. </p> <p> Finally the "Scope" can be entered. On predefined filters these can usually be left blank or at the filter defaults. By ticking the checkbox "Separate From/To scopes" the user can specify different scopes for the \"From\" and \"To\" documents. </p> <p> Click on "Compare" and wait for the comparison to be presented. Changing to another tab may mean the comparison is effectively paused so leaving the the window in focus is recommended. </p> <p>The output is shown in the normal SCL file structure:</p> <pre><code><span class=\"hljs-built_in\">Header</span> Substation Communication IED (one <span class=\"hljs-keyword\">or</span> more) DataTypeTemplates </code></pre> <p> To understand each element it is recommended to look these up in IEC 61850-6 or each manufacturer's documentation. </p> <h2 id=\"creating-filters\">Creating comparison rules</h2> <p> To create your own comparison rule, choose a similar rule and select the "More" option adjacent to the comparison rule selector (the three dots). Click on "Duplicate". Then click on the "More" option and select "Edit". </p> `"
}
],
"exports": [
{
"kind": "js",
"name": "DefaultInfoDialogContent",
"declaration": {
"name": "DefaultInfoDialogContent",
"module": "default-info-dialog-content.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "diff-tree.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "DiffTree",
"members": [
{
"kind": "field",
"name": "ours",
"type": {
"text": "Element | undefined"
},
"attribute": "ours"
},
{
"kind": "field",
"name": "theirs",
"type": {
"text": "Element | undefined"
},
"attribute": "theirs"
},
{
"kind": "field",
"name": "ourHasher",
"type": {
"text": "ReturnType<typeof newHasher> | undefined"
},
"attribute": "ourHasher"
},
{
"kind": "field",
"name": "theirHasher",
"type": {
"text": "ReturnType<typeof newHasher> | undefined"
},
"attribute": "theirHasher"
},
{
"kind": "field",
"name": "depth",
"type": {
"text": "number"
},
"default": "0",
"attribute": "depth"
},
{
"kind": "field",
"name": "odd",
"type": {
"text": "boolean"
},
"readonly": true,
"attribute": "odd",
"reflects": true
},
{
"kind": "field",
"name": "#expanded",
"privacy": "private",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "expanded",
"type": {
"text": "boolean"
},
"attribute": "expanded",
"reflects": true
},
{
"kind": "field",
"name": "everExpanded",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "fullscreen",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "fullscreen"
},
{
"kind": "field",
"name": "childrenExpanded",
"type": {
"text": "boolean[]"
},
"default": "[]"
},
{
"kind": "field",
"name": "allChildrenExpanded",
"type": {
"text": "boolean"
},
"readonly": true
},
{
"kind": "field",
"name": "expandButton",
"type": {
"text": "HTMLElement"
}
},
{
"kind": "field",
"name": "ourHash",
"type": {
"text": "string | undefined"
},
"readonly": true
},
{
"kind": "field",
"name": "theirHash",
"type": {
"text": "string | undefined"
},
"readonly": true
},
{
"kind": "field",
"name": "ourDescription",
"type": {
"text": "Description | undefined"
},
"readonly": true
},
{
"kind": "field",
"name": "theirDescription",
"type": {
"text": "Description | undefined"
},
"readonly": true
},
{
"kind": "field",
"name": "diff",
"type": {
"text": "Record<string, { ours?: any; theirs?: any }>"
},
"readonly": true
},
{
"kind": "field",
"name": "childCount",
"type": {
"text": "number"
},
"readonly": true
},
{
"kind": "method",
"name": "renderRenamedChildren"
},
{
"kind": "method",
"name": "renderChildDiffs"
},
{
"kind": "method",
"name": "renderAttributeDiff"
},
{
"kind": "method",
"name": "renderDiff"
}
],
"events": [
{
"name": "diff-toggle",
"type": {
"text": "CustomEvent"
}
}
],
"attributes": [
{
"name": "ours",
"type": {
"text": "Element | undefined"
},
"fieldName": "ours"
},
{
"name": "theirs",
"type": {
"text": "Element | undefined"
},
"fieldName": "theirs"
},
{
"name": "ourHasher",
"type": {
"text": "ReturnType<typeof newHasher> | undefined"
},
"fieldName": "ourHasher"
},
{
"name": "theirHasher",
"type": {
"text": "ReturnType<typeof newHasher> | undefined"
},
"fieldName": "theirHasher"
},
{
"name": "depth",
"type": {
"text": "number"
},
"default": "0",
"fieldName": "depth"
},
{
"name": "odd",
"type": {
"text": "boolean"
},
"readonly": true,
"fieldName": "odd"
},
{
"name": "expanded",
"type": {
"text": "boolean"
},
"fieldName": "expanded"
},
{
"name": "fullscreen",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "fullscreen"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "diff-tree",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "DiffTree",
"declaration": {
"name": "DiffTree",
"module": "diff-tree.ts"
}
},
{
"kind": "custom-element-definition",
"name": "diff-tree",
"declaration": {
"name": "DiffTree",
"module": "diff-tree.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "filter-dialog.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "FilterDialog",
"members": [
{
"kind": "field",
"name": "open",
"attribute": "open"
},
{
"kind": "field",
"name": "filterName",
"type": {
"text": "string"
},
"default": "''",
"attribute": "filterName"
},
{
"kind": "field",
"name": "existingFilterNames",
"type": {
"text": "string[]"
},
"default": "[]",
"attribute": "existingFilterNames"
},
{
"kind": "field",
"name": "filterDescription",
"type": {
"text": "string"
},
"default": "''"
},
{
"kind": "field",
"name": "ourSelector",
"type": {
"text": "string"
},
"default": "''"
},
{
"kind": "field",
"name": "theirSelector",
"type": {
"text": "string"
},
"default": "''"
},
{
"kind": "field",
"name": "selectorsInclusive",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "selectorsVals",
"default": "[]"
},
{
"kind": "field",
"name": "selectorsExcept",
"default": "[]"
},
{
"kind": "field",
"name": "attributesInclusive",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "attributesVals",
"default": "[]"
},
{
"kind": "field",
"name": "attributesExcept",
"default": "[]"
},
{
"kind": "field",
"name": "namespacesInclusive",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "namespacesVals",
"default": "[]"
},
{
"kind": "field",
"name": "namespacesExcept",
"default": "[]"
},
{
"kind": "field",
"name": "dialog",
"type": {
"text": "MdDialog | undefined"
}
},
{
"kind": "field",
"name": "filterNameInput",
"type": {
"text": "MdOutlinedTextField | undefined"
}
},
{
"kind": "field",
"name": "infoDialog",
"type": {
"text": "InfoDialog | undefined"
}
},
{
"kind": "field",
"name": "#oldFilter",
"privacy": "private",
"type": {
"text": "Filter | undefined"
}
},
{
"kind": "field",
"name": "filter"
},
{
"kind": "method",
"name": "resetDialog"
},
{
"kind": "method",
"name": "showHelpDialog"
},
{
"kind": "method",
"name": "renderLabelAndRadioGroupRow",
"parameters": [
{
"name": "{\n value,\n onChange,\n name,\n label,\n }",
"type": {
"text": "{\n value: boolean;\n onChange: (val: boolean) => void;\n name: string;\n label: string;\n }"
}
}
]
}
],
"events": [
{
"name": "oscd-diff-filter-save",
"type": {
"text": "CustomEvent"
}
}
],
"attributes": [
{
"name": "open",
"fieldName": "open"
},
{
"name": "filterName",
"type": {
"text": "string"
},
"default": "''",
"fieldName": "filterName"
},
{
"name": "existingFilterNames",
"type": {
"text": "string[]"
},
"default": "[]",
"fieldName": "existingFilterNames"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "filter-dialog",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FilterDialog",
"declaration": {
"name": "FilterDialog",
"module": "filter-dialog.ts"
}
},
{
"kind": "custom-element-definition",
"name": "filter-dialog",
"declaration": {
"name": "FilterDialog",
"module": "filter-dialog.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "hash.ts",
"declarations": [
{
"kind": "function",
"name": "createHashElementPredicate",
"parameters": [
{
"name": "{\n selectors,\n namespaces,\n}",
"type": {
"text": "Pick<HasherOptions, 'selectors' | 'namespaces'>"
}
}
]
},
{
"kind": "function",
"name": "hasher",
"return": {
"type": {
"text": "Hasher"
}
},
"parameters": [
{
"name": "db",
"type": {
"text": "HashDB"
}
},
{
"name": "eDb",
"type": {
"text": "ElementDB"
}
},
{
"name": "{ attributes, namespaces }",
"default": "{\n selectors: { inclusive: false, vals: [], except: [] },\n attributes: { inclusive: false, vals: [], except: [] },\n namespaces: { inclusive: false, vals: [], except: [] },\n }",
"type": {
"text": "HasherOptions"
}
},
{
"name": "shouldHashElement",
"default": "() => true",
"type": {
"text": "(element: Element) => boolean"
}
}
]
},
{
"kind": "function",
"name": "newHasher",
"return": {
"type": {
"text": "{\n hash: Hasher;\n db: HashDB;\n eDb: ElementDB;\n findReferences: (element: Element) => Element[];\n}"
}
},
"parameters": [
{
"name": "options",
"default": "{\n selectors: { inclusive: false, vals: [], except: [] },\n attributes: { inclusive: false, vals: [], except: [] },\n namespaces: { inclusive: false, vals: [], except: [] },\n }",
"type": {
"text": "HasherOptions"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "createHashElementPredicate",
"declaration": {
"name": "createHashElementPredicate",
"module": "hash.ts"
}
},
{
"kind": "js",
"name": "hasher",
"declaration": {
"name": "hasher",
"module": "hash.ts"
}
},
{
"kind": "js",
"name": "newHasher",
"declaration": {
"name": "newHasher",
"module": "hash.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "icons.ts",
"declarations": [
{
"kind": "variable",
"name": "inputIcon",
"default": "svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\"> <path fill=\"currentColor\" d=\"M14,12L10,8V11H2V13H10V16M20,18V6C20,4.89 19.1,4 18,4H6A2,2 0 0,0 4,6V9H6V6H18V18H6V15H4V18A2,2 0 0,0 6,20H18A2,2 0 0,0 20,18Z\" /> </svg>`"
},
{
"kind": "variable",
"name": "clientIcon",
"default": "svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\"> <path fill=\"currentColor\" d=\"M21,14V4H3V14H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14L16,21V22H8V21L10,18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M4,5H15V10H4V5M16,5H20V7H16V5M20,8V13H16V8H20M4,11H9V13H4V11M10,11H15V13H10V11Z\" /> </svg>`"
},
{
"kind": "variable",
"name": "disconnect",
"default": "svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\"> <path fill=\"currentColor\" d=\"M4,1C2.89,1 2,1.89 2,3V7C2,8.11 2.89,9 4,9H1V11H13V9H10C11.11,9 12,8.11 12,7V3C12,1.89 11.11,1 10,1H4M4,3H10V7H4V3M14,13C12.89,13 12,13.89 12,15V19C12,20.11 12.89,21 14,21H11V23H23V21H20C21.11,21 22,20.11 22,19V15C22,13.89 21.11,13 20,13H14M3.88,13.46L2.46,14.88L4.59,17L2.46,19.12L3.88,20.54L6,18.41L8.12,20.54L9.54,19.12L7.41,17L9.54,14.88L8.12,13.46L6,15.59L3.88,13.46M14,15H20V19H14V15Z\" /> </svg>`"
},
{
"kind": "function",
"name": "iconFromPath",
"return": {
"type": {
"text": "TemplateResult<2>"
}
},
"parameters": [
{
"name": "path",
"type": {
"text": "TemplateResult<2>"
}
}
]
},
{
"kind": "function",
"name": "getDisplayIcon",
"return": {
"type": {
"text": "string | TemplateResult<2>"
}
},
"parameters": [
{
"name": "element",
"type": {
"text": "Element"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "inputIcon",
"declaration": {
"name": "inputIcon",
"module": "icons.ts"
}
},
{
"kind": "js",
"name": "clientIcon",
"declaration": {
"name": "clientIcon",
"module": "icons.ts"
}
},
{
"kind": "js",
"name": "disconnect",
"declaration": {
"name": "disconnect",
"module": "icons.ts"
}
},
{
"kind": "js",
"name": "iconFromPath",
"declaration": {
"name": "iconFromPath",
"module": "icons.ts"
}
},
{
"kind": "js",
"name": "getDisplayIcon",
"declaration": {
"name": "getDisplayIcon",
"module": "icons.ts"
}
}
]
},