2.0.2 • Published 9 months ago

@openenergytools/scl-text-field v2.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

\

This is a web component meant to be used for SCL type attributes. In addition to default input it allows to have a value="null" for XML type attributes. In addition to that is allows to set a unit and multiplier for specific SCL element such as VoltageLevel or SubNetwork.

Usage

This element was meant to be used only for plugins in this organization. If it still fills you bill please use or re-use it. But be aware that we will not react on features wishes that do not contribute to the needs of plugin in this organization.

SclTextField.ts:

class: SclTextField, scl-text-field

Superclass

NameModulePackage
LitElementlit

Mixins

NameModulePackage
ScopedElementsMixin@open-wc/scoped-elements/lit-element.js

Static Fields

NamePrivacyTypeDefaultDescriptionInherited From
scopedElementsobject`{
'md-filled-text-field': MdFilledTextField,
'md-switch': MdSwitch,
'md-icon': MdIcon,
'md-icon-button': MdIconButton,
'md-menu': MdMenu,
'md-menu-item': MdMenuItem,

}` | | |

Fields

NamePrivacyTypeDefaultDescriptionInherited From
nullablebooleanfalseWhether [[`value`]] may be set to `null` by nullSwitch
valuestring \| nullSCL attributes `value`, can only be `null` if [[`nullable`]].
disabledbooleanfalse
labelstring''
requiredbooleanfalse
supportingTextstring''
suffixTextstring''The inputs suffix text so long there is no [[`unit`]] defined
placeholderstring''
type'number' \| 'text''text'
patternstring''
maxstring''
minstring''
maxLengthnumber-1
minLengthnumber-1
unitstring''SI Unit, must be non-empty to allow for selecting a [[`multiplier`]]. Overrides [[`suffixText`]].
multipliersarray[null, '']Selectable SI multipliers for a non-empty [[`unit`]].
multiplierstring \| nullThe current selected [[`multiplier`]]
nullSwitchMdSwitch \| undefined

Methods

NamePrivacyDescriptionParametersReturnInherited From
reportValidityboolean
setCustomValiditymessage: stringvoid
checkValidityboolean
resetvoid

Events

NameTypeDescriptionInherited From
inputEvent

Fields

NamePrivacyTypeDefaultDescriptionInherited From
textFieldValueprivatestring''
multiplierIndexprivatenumber0
isNullprivatebooleanfalse
parkedValueprivatestring \| nullnull
nullprivateboolean
multiplierMenuprivateMdMenu \| undefined
textFieldprivateTextField \| undefined

Methods

NamePrivacyDescriptionParametersReturnInherited From
returnParkedValueprivatevoid
parkValueprivatevoid
selectMultiplierprivatese: CloseMenuEventvoid
renderMultiplierListprivateTemplateResult
renderUnitSelectorprivateTemplateResult
renderNullSwitchprivateTemplateResult

Exports

KindNameDeclarationModulePackage
jsSclTextFieldSclTextFieldSclTextField.ts

scl-text-field.ts:

Exports

KindNameDeclarationModulePackage
custom-element-definitionscl-text-fieldSclTextField/SclTextField.js

© 2023 The Contributors

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

10 months ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago