Skip to content

Commit

Permalink
12 add voltage level editor (#40)
Browse files Browse the repository at this point in the history
* create(voltage-level-editor) add properties name/desc and display header

* fix(SubstationEditor): Move VoltageLevel Wizard functions to voltage-level-editor

* fix(voltage-level-editor): Generate minimal EditorAction set needed for the requested WizardAction

* fix(voltage-level-editor): Remove logging statement

* feat(internationalization): initial commit with lit-element

* fix(wizard-textfield): Store property values before element can be nulled

* feat(SubstationEditor): Add 'create voltage level' button to substation header

* feat(internationalization): initial commit with lit-translate

* chore(package): upgrade dependencies

* test (theming):  test with standard css

* add(thiming): finishes theming

* 26 internationalize (#32)

* feat(internationalization): initial commit with lit-translate

* chore(package): upgrade dependencies

* feat(internationalization): Fully translate user interface

* fix(open-scd): translate 'Menu'

* fix(SubstationEditor): add missing translations

* fix(wizard-textfield): refactor and simplify

* add(wizard-textfield): updated tests

* test(wizard-textfield): regroup tests, improve descriptions

* test(SettingElement): add test suite

Co-authored-by: Jakob Vogelsang! <[email protected]>
Co-authored-by: Christian Dinkel <[email protected]>

* fix(themes): load theme from settings

* fix(themes): improve performance by migrating from css to html

* add(voltage-level-editor):  added static function

* test(VoltageLevelEditor): add createAction tests

* test(VoltageeLevelElement): split unit tests for voltage-level-editor and VoltageLevelEditor

* feat(SubstationEditor): add remove substation button

* fix(open-scd): improve hotkey code readability

* fix(SubstationEditor): remove superfluous overflow menu

* add(voltage-level-editor): delete action, styling

* 13 add bay editor (#39)

* create(bay-editor): add properties name, desc and display header

* feat(bay-element) : create, edit and delete added to the editor

* add(bay-element) translations for bay editor dialogs

* fix(bay-editor) wrong name fixed

* add(voltage-level-editor) test added to check that voltage element is deleted with nulled voltage text-field

* add(ubstation/voltage-leve/bay-editor) icon to identify elements in better

* 14 add conducting equipment editor (#34)

* create(conducting-equipment-editor) add property name, desc

* add(icons) disconnector icon

* feat(bay-editor) display conducting equipment

* test(conducting-equipment-editor) add unit tests

* feat(conducting-equipment-editor) add icons, add styling

* feat(conducting-equipment-editor) add, create, edit and delete

* style(substation-editor) improved styling

* fix(conducting-equipment-editor): add reference element to removeAction

* feat(conducting-equipment-editor) ´validity chacks for unique name before name change

* style(conducting-equipment-editor, bay-editor, voltage-level-editor) improve styling

* add(conducting-equipment-editor) add getValue, getMultiplier, type lookup tables

* test(conducting-equipment-editor): add unit tests

* style(conducting.equipment-editor) make conducting equipment container focusable

* add(conducting-equipment-editor) general icon for types other than CBR, DIS, CTR, VTR

* add(conducting-equipment-editor) translations in german and english

* 15 add lnode wizard (#35)

* feat(LNodeWizward) add function to substation, voltage-level and bay-editor

* feat(LNodeWizard) remove wizard and remove action added

* add(LNodeWizard) translations for english and german

* fix(LNodeWizard): improve performance by switching to lit-html render

* Add inital Travis CI configuration

* Update karma config for Travis CI

* chore(package): update dependencies

* chore(package): add snowpack build step

* chore(travis): add snowpack build stage

* fix(travis): customize build script

* feat(travis): add pages deploy config

* fix(travis): allow test branch to trigger deploy

* fix(LICENSE): add IEC EULA and copyright notice

* Add LICENSE

Apache 2.0

* fix(package): exclude junk from build, include coverage

* fix(karma): unify coverage report path

* Update docs

* chore(travis): upgrade to dpl v2

* chore(doc): move to html doc for github pages

* fix(travis): workaround unknown provider value git:pages

* fix(doc): add snowpack compatible nojekyll file

* feat(travis): update docs before deploy

* fix(SubstationEditor): remove superfluous margin

* fix(index.html): make background color bearable

* feat(index.html): add favicon

* fix travis bug

* fix(travis): update published branch name

* fix(package): make snowpack the default dev server

Co-authored-by: Jakob Vogelsang! <[email protected]>
Co-authored-by: Christian Hildebrandt <[email protected]>
Co-authored-by: Christian Dinkel <[email protected]>

* add(LNodeWizard): check for existing LNode to avoid duplicate

* chore(package): update docs

* refactor(LNodeWizard): add ldValue and lnValue types

* refactor(lnodewizard) combine add and remove wizard to edit wizard

* feat(conducting-equipment-editor) add lonodewizard && refacgtor styling

* fix(lnodewizard): correct file name

* fix(travis): generate docs

* fix(lnodewizard) adjust translation to combined wizard

* fix(package): exclude superfluous files from snowpack build

* fix(voltage-level-editor) remove unnecessary svg styling

* fix(conducting-equipment-editor) check for unique names excludes own name now

* fix(lnodewizard): correct adding and removing logic

* fix(lnodewizard): correct adding and removing logic

* add(lnodewizard) add initial unit tests

* feat(validate): shoehorn new async validation worker into old API

* chore(validate): update xmlvalidate.js

* fix(validate): move schema validation to Validating mixin

* test(open-scd): add dirty hack to make tests pass

* fix(package): add commitlint config

* test(validating): add unit tests

* test(validating): add unit tests

* fix(validating): translate UI text

* refactor(package): move doc generation and test into build step

* doc(open-scd): add more documentation

* doc: Add more documentation comments

* test(wizard-dialog): fix checkValidity tests

* docs(editing): minor clarification

* docs(foundation): minor clarification

* docs(substation): add explanatory comments

* fix(bay-editor): use correct reference for Delete EditorAction

* test(data): add valid IED with IED and data modell

* fix(lnodewizard): handling attribute prefix in LNode and LN/LN0

* fix(lnodewizard): failed unit test

* fix(conducting-equipment-editor): query header using id

* fix(conducting-equipment-editor): make styles consistent

* fix(foundation): mark inverted Move Actions derivative

* fix(open-scd): make progress indicator clickthrough

* feat(open-scd): cache editor plugin DOM trees

* feat(conducting-equipment-editor): initial Move interface UI draft

* feat(conducting-equipment-editor): enable keyboard driven Move

* fix(editors/substation): switch to consistent grid layout

* fix(editors/substation): make responsive grid layout consistent

* test(editors/substation): remove superfluous fab tests

* feat(editors/substation): add generic startMove function

* fix(editors/substation): make transition timings conform to material design speed

* feat(editing): add generic Action verification methods

* feat(editing): translate action verification errors

* fix(translations/de): improve editing.error.nameClash translation

* fix(editing): choose correct translations in validation

* chore(xmlvalidate.js): update dependency

* fix(editors/substation): ignore elements in Private sections

* fix(editors/substation/voltage-level-editor): make responsive grid completely fluid

* feat(editors/substation/conducting-equipment-editor): make CE icons smaller

* feat(editing): add checkValidity override to EditorAction

* fix(editors/substation): make bay-editor show at least columns on large screens

* fix(editors/substation/conducting-equipment-editor): maximize header space, fix obscured menu-items

* feat(editors/substation): simplify editor API by removing parent property

* fix(editors/substation): safeguard selectors against Private sections

* docs(editors/substation/foundation): add initial documentation

* fix(editors/substation/lnodewizard): make query selectors Private section proof

* 15 add tests to lnodewizard (#38)

* feat(lnodewizard): disable logical nodes selection if LNode already exist

* test(lnodewizard): add integrity tests with wizard-dialog

* test(fast-check): enable property based tests

* test(lnodewizard): move mock-wizard to be usable in unit and integration tests

* test(lnodewizard): add restrictions of LNode element to property based tests

* fix(lnodewizard): selector to avoid false positive with empty/missing prefix/inst in LN/LN0

* test(lnodewizard): add integration tests

* test(lnodewizard): add property based tests to unit tests

* test(mock-wizward): move mock-wizard to be usable in unit and intergation tests

* fix(conducting-equipment-editor): query header using id

* fix(conducting-equipment-editor): make styles consistent

* fix(foundation): mark inverted Move Actions derivative

* fix(open-scd): make progress indicator clickthrough

* feat(open-scd): cache editor plugin DOM trees

* feat(conducting-equipment-editor): initial Move interface UI draft

* feat(conducting-equipment-editor): enable keyboard driven Move

* fix(editors/substation): switch to consistent grid layout

* fix(editors/substation): make responsive grid layout consistent

* test(editors/substation): remove superfluous fab tests

* feat(editors/substation): add generic startMove function

* fix(editors/substation): make transition timings conform to material design speed

* feat(editing): add generic Action verification methods

* feat(editing): translate action verification errors

* fix(translations/de): improve editing.error.nameClash translation

* fix(editing): choose correct translations in validation

* chore(xmlvalidate.js): update dependency

* fix(editors/substation): ignore elements in Private sections

* fix(editors/substation/voltage-level-editor): make responsive grid completely fluid

* feat(editors/substation/conducting-equipment-editor): make CE icons smaller

* feat(editing): add checkValidity override to EditorAction

* fix(editors/substation): make bay-editor show at least columns on large screens

* fix(editors/substation/conducting-equipment-editor): maximize header space, fix obscured menu-items

* feat(editors/substation): simplify editor API by removing parent property

* fix(editors/substation): safeguard selectors against Private sections

* docs(editors/substation/foundation): add initial documentation

* fix(editors/substation/lnodewizard): make query selectors Private section proof

* feat(lnodewizard): disable logical nodes selection if LNode already exist

* fix(lnodewizard): selector to avoid false positive with empty/missing prefix/inst in LN/LN0

* fix(lnodewizard): solve merge conflicts from rebase

* fix(lnodewizard): remove superflous bracket

* fix(lnodewizard): change connected to hint for referenced LNode

* test(lnodewizard): fix integration tests, add complete test substation structure

* fix(lnodewizard): make valueToSelector Private proof

* refactor(editors/substation/lnodewizard): combine existLNode into hasLNode

* feat(editors/substation/lnodewizard): allow editing Client LNodes

* fix(editors/substation/lnodewizard): write an empty ldInst for Client LN

* refactor(editors/substation/lnodewizard): remove groups

* feat(editors/substation/lnodewizard): sort LNs by selected and disabled

* feat(editors/substation/lnodewizard): sort IED page by selected

* feat(editors/substation/lnodewizard):  sort logical device list, show selected items first

* refactor(editors/substation/lnodewizard): change hasLNode to getLNode

- adapt tests to make them sorting independent
- make minor styling adjustments

* style(editors/substation): swap lnode icon device_hub for account_tree

* refactor(editors/substation/lnodewizard): clean up event handlers

* docs(editors/substation/lnodewizard): add doc comments

Co-authored-by: Jakob Vogelsang! <[email protected]>
Co-authored-by: Christian Dinkel <[email protected]>

* refactor(editors/substation/conducting-equipment): minor cleanup

* chore(travis): update deploy branch to 13

Co-authored-by: Christian Dinkel <[email protected]>
Co-authored-by: Christian Hildebrandt <[email protected]>

* refactor(editors/substation/bay-editor): minor cleanup

* chore(travis): update deploy branch to #12

Co-authored-by: Jakob Vogelsang! <[email protected]>
Co-authored-by: Christian Dinkel <[email protected]>
Co-authored-by: Christian Hildebrandt <[email protected]>

* refactor(editors/substation/voltage-level-editor): minor cleanup

* chore(travis): switch deploy branch to 8

Co-authored-by: Jakob Vogelsang! <[email protected]>
Co-authored-by: Christian Dinkel <[email protected]>
Co-authored-by: Christian Hildebrandt <[email protected]>
  • Loading branch information
4 people authored Nov 27, 2020
1 parent 6955b5d commit 2e527c7
Show file tree
Hide file tree
Showing 106 changed files with 10,833 additions and 32,917 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
## testing
/coverage/

## docs
/doc/

# build
/_site/
/dist/
/build/
/out-tsc/
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
snowpack placeholder
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: node_js
node_js:
- 14
script:
npm run build

deploy:
edge: true
provider: pages
token: $GITHUB_TOKEN
keep_history: true
repo: openscd/openscd.github.io
target_branch: master
local_dir: build
on:
branch: 8-add-substation-section-editor
Binary file added CC-EULA.pdf
Binary file not shown.
203 changes: 201 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,201 @@
Copyright (c) 2020 OMICRON electronics GmbH
All rights reserved.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed 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.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## `OpenSCD`
# `OpenSCD`

[![Built with open-wc recommendations](https://img.shields.io/badge/built%20with-open--wc-blue.svg)](https://github.com/open-wc)

Expand All @@ -20,3 +20,12 @@ npm start
- `test` runs the test suite with Karma
- `lint` runs the linter
- `doc` builds markdown documentation in the `doc` directory

## License

The [IEC 61850](https://webstore.iec.ch/publication/63319) XML schemas used are
distributed under their [end user license agreement](CC-EULA.pdf).

This project is licensed under the [Apache License 2.0](LICENSE).

&copy; 2020 OMICRON electronics GmbH
26 changes: 0 additions & 26 deletions doc/README.md

This file was deleted.

Loading

0 comments on commit 2e527c7

Please sign in to comment.