@rmwc/select
Advanced tools
@@ -58,5 +58,3 @@ "use strict"; | ||
| return { | ||
| setSelectedText: function (text) { | ||
| setSelectedTextContent(text); | ||
| }, | ||
| setSelectedText: function (text) { return setSelectedTextContent(text); }, | ||
| openMenu: function () { | ||
@@ -87,2 +85,7 @@ setMenuOpen(true); | ||
| setSelectAnchorAttr: function (attr, value) { | ||
| if (attr === 'tabindex') { | ||
| if (isNative()) | ||
| return; | ||
| attr = 'tabIndex'; | ||
| } | ||
| return anchorEl.setProp(attr, value); | ||
@@ -106,11 +109,6 @@ }, | ||
| } | ||
| if (menu.current === undefined) { | ||
| return -1; | ||
| } | ||
| var index = menu.current.selectedIndex; | ||
| return index instanceof Array ? index[0] : index; | ||
| return selectedIndex.current; | ||
| }, | ||
| setSelectedIndex: function (index) { | ||
| var _a; | ||
| return (_a = menu.current) === null || _a === void 0 ? void 0 : _a.setSelectedIndex(index); | ||
| return selectedIndex; | ||
| } | ||
@@ -117,0 +115,0 @@ }; |
@@ -55,5 +55,3 @@ import { __assign, __read, __rest } from "tslib"; | ||
| return { | ||
| setSelectedText: function (text) { | ||
| setSelectedTextContent(text); | ||
| }, | ||
| setSelectedText: function (text) { return setSelectedTextContent(text); }, | ||
| openMenu: function () { | ||
@@ -84,2 +82,7 @@ setMenuOpen(true); | ||
| setSelectAnchorAttr: function (attr, value) { | ||
| if (attr === 'tabindex') { | ||
| if (isNative()) | ||
| return; | ||
| attr = 'tabIndex'; | ||
| } | ||
| return anchorEl.setProp(attr, value); | ||
@@ -103,11 +106,6 @@ }, | ||
| } | ||
| if (menu.current === undefined) { | ||
| return -1; | ||
| } | ||
| var index = menu.current.selectedIndex; | ||
| return index instanceof Array ? index[0] : index; | ||
| return selectedIndex.current; | ||
| }, | ||
| setSelectedIndex: function (index) { | ||
| var _a; | ||
| return (_a = menu.current) === null || _a === void 0 ? void 0 : _a.setSelectedIndex(index); | ||
| return selectedIndex; | ||
| } | ||
@@ -114,0 +112,0 @@ }; |
+10
-10
| { | ||
| "name": "@rmwc/select", | ||
| "version": "8.0.3", | ||
| "version": "8.0.4", | ||
| "description": "RMWC Select component", | ||
@@ -40,13 +40,13 @@ "main": "dist/index.js", | ||
| "@material/select": "^8.0.0", | ||
| "@rmwc/base": "^8.0.3", | ||
| "@rmwc/floating-label": "^8.0.3", | ||
| "@rmwc/icon": "^8.0.3", | ||
| "@rmwc/line-ripple": "^8.0.3", | ||
| "@rmwc/list": "^8.0.3", | ||
| "@rmwc/menu": "^8.0.3", | ||
| "@rmwc/notched-outline": "^8.0.3", | ||
| "@rmwc/ripple": "^8.0.3", | ||
| "@rmwc/types": "^8.0.3" | ||
| "@rmwc/base": "^8.0.4", | ||
| "@rmwc/floating-label": "^8.0.4", | ||
| "@rmwc/icon": "^8.0.4", | ||
| "@rmwc/line-ripple": "^8.0.4", | ||
| "@rmwc/list": "^8.0.4", | ||
| "@rmwc/menu": "^8.0.4", | ||
| "@rmwc/notched-outline": "^8.0.4", | ||
| "@rmwc/ripple": "^8.0.4", | ||
| "@rmwc/types": "^8.0.4" | ||
| }, | ||
| "gitHead": "d9befec0e3b258864b71686eecd16c16feb43cf1" | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
105250
-0.26%1834
-0.22%Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated