Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@umbraco-ui/uui-boolean-input

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umbraco-ui/uui-boolean-input - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0

21

lib/index.js

@@ -18,2 +18,5 @@ import { UUIFormControlMixin, LabelMixin } from '@umbraco-ui/uui-base/lib/mixins';

var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __typeError = (msg) => {
throw TypeError(msg);
};
var __decorateClass = (decorators, target, key, kind) => {

@@ -27,2 +30,6 @@ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;

};
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
var _UUIBooleanInputElement_instances, onKeyDown_fn;
class UUIBooleanInputElement extends UUIFormControlMixin(

@@ -34,2 +41,3 @@ LabelMixin("", LitElement),

super();
__privateAdd(this, _UUIBooleanInputElement_instances);
this._value = "";

@@ -45,3 +53,3 @@ this.labelPosition = "right";

this.inputRole = inputRole;
this.addEventListener("keypress", this._onKeypress);
this.addEventListener("keydown", __privateMethod(this, _UUIBooleanInputElement_instances, onKeyDown_fn));
}

@@ -78,7 +86,2 @@ /** intentional overwrite of FormControlMixins value getter and setter method. */

}
_onKeypress(e) {
if (e.key == "Enter") {
this.submit();
}
}
hasValue() {

@@ -145,2 +148,8 @@ return this.checked;

}
_UUIBooleanInputElement_instances = new WeakSet();
onKeyDown_fn = function(e) {
if (e.key == "Enter") {
this.submit();
}
};
UUIBooleanInputElement.styles = [

@@ -147,0 +156,0 @@ css`

@@ -11,2 +11,3 @@ import { LitElement, TemplateResult } from 'lit';

export declare abstract class UUIBooleanInputElement extends UUIBooleanInputElement_base {
#private;
private _value;

@@ -58,3 +59,2 @@ /** intentional overwrite of FormControlMixins value getter and setter method. */

protected getFormElement(): HTMLInputElement;
private _onKeypress;
hasValue(): boolean;

@@ -61,0 +61,0 @@ formResetCallback(): void;

{
"name": "@umbraco-ui/uui-boolean-input",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",

@@ -33,3 +33,3 @@ "keywords": [

"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},

@@ -45,3 +45,3 @@ "scripts": {

"homepage": "https://uui.umbraco.com/?path=/story/uui-boolean-input",
"gitHead": "414ce88901f82c5fc7d6be942779047bb34a1407"
"gitHead": "0ac5219b2765bf6c90fe4943a6620b46a7fced4e"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc