Git Product home page Git Product logo

oscd-form-elements's People

Contributors

pascalwilbrink avatar stef3st avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

stef3st

oscd-form-elements's Issues

Create `oscd-textfield` based on `wizard-textfield`

As a plugin author and maintainer of already existing plugins, I need to have open-scds wizard-textfield available through npm. The idea is to re-use the component for other plug-ins editors. This behavior is the same all over OpenSCD.

Requirements:

  • move wizard-textfield to oscd-texfield repo
  • change tag name to oscd-textfield
  • do !NOT! extend from mwc-textfield but use it in the render method
  • add properties
  • This wizard is only for 61850 SCL related fields
name type description
value string | null former maybeValue set and get Elements attribute value null means attribute is missing
disabled boolean disables both the input field and the null switch
defaultValue string is indicating the default value if maybeValue is null
unit string indicator when multiplier can be selected
multipliers (string | null)[] an array of allowed multipliers the user can choose from
multiplier string | null multiplier attribute the user can choose from
label string pass to mwc-textfield
required boolean pass to input field
reservedValues string[] and array of invalid inputs
nullable boolean Whether null is valid maybeValue output
helper string pass to input field
helperPersistent boolean pass to input field
validationMessage string pass to input field helper if input is invalid
suffix boolean pass to input field
pattern string pass to input field
minLength string pass to input field
maxLength string pass to input field
type string pass to input field
min string pass to input field
max string pass to input field
  • expose methods
name type description
checkValidity boolean Whether the select field is valid
  • add change event
    propagate change event for any changes on value

  • add screenshot tests

  • add storybook

Additional Information
This web-component is used pretty much everywhere in the software

Open questions:
Why is multiplier in their? Answer: it could happen on the SCL field;

Styling?
Error handling?

General question for OSCD-textfield, OSCD-select, OSCD-testfield;
if you enter that does not meet the criteria; it becomes red;

Do you need to add translations to the wizard-textfield

Do we need a one-to-one conversion?
Yes: faster to production
No: fix bugs first

Decision: Fix bugs

Create `oscd-select` based on `wizard-select`

As a plugin author and maintainer of already existing plugins, I need to have open-scds wizard-select available through nmp.

Requirements:

  • move wizard-select to oscd-select repo
  • change tag name to oscd-select
  • do !NOT! extend from mwc-select but use it in the render method. This allows us to exchange the now used material web components with another web-component library.
  • add properties
name type description
value string | null set and get Elements attribute value null means attribute is missing
disabled boolean disables both the input field and the null switch
defaultValue string is indicating the default value if maybeValue is null
label string pass to mwc-select
required boolean pass to input field
nullable boolean Whether null is valid maybeValue output
helper string pass to input field
validationMessage string pass to input field helper if input is invalid
selected ListItemBase|null Selected list item element.
items ListItemBase[] List of selectable items.
index number Index of selected list item.
  • expose methods
name type description
checkValidity boolean Whether the select field is valid
  • propagate event
    change event for any changes on value

  • add screenshot tests

  • add storybook

Additional Information
This web-component is used pretty much everywhere in the software

Create `oscd-checkbox` based on `wizard-checkbox`

As a plugin author and maintainer of already existing plugins, I need to have open-scds wizard-checkbox available through nmp.

Requirements:

  • move wizard-textfield to oscd-checkbox repo
  • change tag name to oscd-checkbox
  • do !NOT! extend from mwc-checkbox but use it in the render method
  • add properties
name type description
maybeValue string | null set and get Elements attribute value null means attribute is missing
disabled boolean disables both the input field and the null switch
defaultValue string is indicating the default value if maybeValue is null
label string short name displayed next to the checkbox
nullable boolean Whether null is valid maybeValue output
helper string pass to input field
  • propagate change event for any changes on maybeValue
  • add screenshot tests
  • add storybook

Additional Information
This web-component is used pretty much everywhere in the software

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.