Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toggleOptional() {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as { [name: string]: common.ValueType } | undefined
this.validate()
this.$emit('update-value', { value: this.value, isValid: this.invalidProperties.length === 0 })
}
onChange(property: string, { value, isValid }: common.ValidityValue) {
toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as string | undefined
this.updateValue.emit({ value: this.value, isValid: true })
}
}
toggleOptional() {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as boolean | undefined
this.updateValue.emit({ value: this.value, isValid: true })
}
get isReadOnly() {
toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as any
this.$emit('update-value', { value: this.value, isValid: true })
}
}
toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as common.ValueType[] | undefined
this.validate()
this.updateValue.emit({ value: this.value, isValid: !this.errorMessage && this.invalidIndexes.length === 0 })
}
addItem() {
toggleOptional() {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as string | undefined
this.validate()
this.$emit('update-value', { value: this.value, isValid: !this.errorMessage })
}
collapseOrExpand() {
toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.schema, this.initialValue) as { [name: string]: common.ValueType } | undefined
this.validate()
this.updateValue.emit({ value: this.value, isValid: this.invalidProperties.length === 0 })
}
onChange(property: string, { value, isValid }: common.ValidityValue<{ [name: string]: common.ValueType }>) {
private toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.props.schema, this.props.initialValue) as string | undefined
this.validate()
this.willRender = true
this.setState({ value: this.value })
this.props.updateValue(this.value, !this.errorMessage)
}
private collapseOrExpand = () => {
private toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.props.schema, this.props.initialValue) as string | undefined
this.setState({ value: this.value })
this.props.updateValue(this.value, true)
}
}
private toggleOptional = () => {
this.value = common.toggleOptional(this.value, this.props.schema, this.props.initialValue) as number | undefined
this.validate()
this.willRender = true
this.setState({ value: this.value })
this.props.updateValue(this.value, !this.errorMessage)
}
private get useInput() {