
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@ewc-lib/ewc-multiselect
Advanced tools
A multi-select component built with LitElement and TailwindCSS based on ECL styles.
A customizable multi-select component built with LitElement and TailwindCSS. This component allows users to select multiple countries, mark favorites, and reset selections.
To install the component, use NPM:
npm install @ewc-lib/ewc-multiselect
Import the component in your project and use it in your HTML:
import '@ewc-lib/ewc-multiselect';
See the main.js file in the site/src folder.
<my-multiselect
enableFavorite="true"
countries='[
[{"code": "EU27_2020", "name": "European Union", "status": "active"}],
[
{"code": "AT", "name": "Austria", "status": "active"},
{"code": "BE", "name": "Belgium", "status": "active"},
...
],
[
{"code": "NO", "name": "Norway", "status": "active"},
{"code": "CH", "name": "Switzerland", "status": "active"},
...
]
]'
defaultCountries='["EU27_2020"]'
maxSelectableCountries="5"
resetButtonThreshold="3"
invertColors="false"
dropdownHeight="200px"
></my-multiselect>
enableFavorite
: Set to "true"
to enable favorite functionality.countries
: JSON array of country groups. Each country object should have a code
, name
, and status
.defaultCountries
: Array of default country codes.maxSelectableCountries
: Maximum number of selectable countries.resetButtonThreshold
: Number of selections before the reset button appears.invertColors
: Use this when embedding the component on a dark background.dropdownHeight
: Use this, when you want to control the height of the dropdown. Provide number with 'px'.The component dispatches custom events for interactions:
country-selected
: Fired when a country is selected.country-deselected
: Fired when a country is deselected.favorite-change
: Fired when the favorite country changes.reset
: Fired when selections are reset.multiSelect.addEventListener("country-selected", (event) => {
console.log("Country selected:", event.detail.country);
});
multiSelect.addEventListener("country-deselected", (event) => {
console.log("Country deselected:", event.detail.country);
});
multiSelect.addEventListener("reset", (event) => {
console.log("Selection reset:", event.detail.selectedCountries);
});
multiSelect.addEventListener("favorite-change", (event) => {
console.log("Favorite country changed:", event.detail.favoriteCountry);
});
Compile the TypeScript code to JavaScript and watch for changes.
npm run watch
cd site
npm run dev
Now, code changes are directly reflected in the browser.
Before publishing, test the package locally:
npm pack
to create a tarball.npm install ../path-to-your-package/@ewc-lib/ewc-multiselect-x.y.z.tgz
.This project is licensed under the EUPL License.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
FAQs
A multi-select component built with LitElement and TailwindCSS based on ECL styles.
The npm package @ewc-lib/ewc-multiselect receives a total of 154 weekly downloads. As such, @ewc-lib/ewc-multiselect popularity was classified as not popular.
We found that @ewc-lib/ewc-multiselect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.