
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@openscd/oscd-filtered-list
Advanced tools
Webcomponent oscd-filtered-list following open-wc recommendations
This webcomponent follows the open-wc recommendation.
npm i @openscd/oscd-filtered-list
<script type="module">
import 'oscd-filtered-list';
</script>
<oscd-filtered-list></oscd-filtered-list>
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
To execute a single test run:
npm run test
To run the tests in interactive watch mode run:
npm run test:watch
To run a local instance of Storybook for your component, run
npm run storybook
To build a production version of Storybook, run
npm run storybook:build
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
Material Icons are being used for the icons. This font needs to be added in the html first. You can add it like so:
<link
href="https://fonts.googleapis.com/css?family=Material+Icons&display=block"
rel="stylesheet"
/>
web-dev-server
npm start
To run a local development server that serves the basic demo located in demo/index.html
src/OscdFilteredList.ts
:Kind | Name | Declaration | Module | Package |
---|---|---|---|---|
custom-element-definition | oscd-filtered-list | OscdFilteredList | /src/oscd-filtered-list.js | |
js | OscdFilteredList | OscdFilteredList | src/OscdFilteredList.ts |
src/oscd-filtered-list.ts
:OscdFilteredList
, oscd-filtered-list
Name | Module | Package |
---|---|---|
LitElement | lit-element |
Name | Privacy | Type | Default | Description | Inherited From |
---|---|---|---|---|---|
searchFieldLabel | string | undefined | search mwc-textfield label property | |||
disableCheckAll | boolean | false | Whether the check all option (checkbox next to search text field) is activated | ||
filter | string | undefined | The current input value of the filter textbox | |||
wrapFocus | boolean | false | When `true`, pressing `up` on the keyboard when focused on the first item will focus the last item and `down` when focused on the last item will focus the first item. | ||
multi | boolean | false | When `true`, enables selection of multiple items. This will result in `index` being of type `Set<number>` and selected returning `ListItemBase[]`. | ||
activatable | boolean | false | Sets activated attribute on selected items which provides a focus-persistent highlight. | ||
list | List | ||||
selected | Currently-selected list item(s). When `multi` is `true`, `selected` is of type `ListItemBase[]` and when `false`, `selected` is of type `ListItemBase`. `selected` is `null` when no item is selected. | ||||
index | Index / indices of selected item(s). When `multi` is `true`, `index` is of type `number` and when `false`, `index` is of type `Set<number>`. Unset indicies are `-1` and empty `Set<number>` for single and multi selection respectively. | ||||
items | Array<ListItem> | [] | All list items that are available for selection. Eligible items have the `[mwc-list-item]` attribute which `ListItemBase` applies automatically. | ||
searchField | TextField |
Name | Privacy | Description | Parameters | Return | Inherited From |
---|---|---|---|---|---|
onFilterInput | void |
Name | Type | Description | Inherited From |
---|---|---|---|
action | ActionEvent | Fired when a selection has been made via click or keyboard action. | |
selected | SelectedEvent | Fired when a selection has been made. `index` is the selected index (will be of type `Set<number>` if multi and `number` if single), and `diff` (of type `IndexDiff`\*\*) represents the diff of added and removed indices from previous selection. |
Name | Description | Parameters | Return |
---|---|---|---|
redispatchEvent | element: LitElement, event: Event |
Kind | Name | Declaration | Module | Package |
---|---|---|---|---|
js | redispatchEvent | redispatchEvent | src/oscd-filtered-list.ts | |
js | OscdFilteredList | OscdFilteredList | src/oscd-filtered-list.ts |
© 2023 Alliander N.V.
FAQs
Webcomponent oscd-filtered-list following open-wc recommendations
The npm package @openscd/oscd-filtered-list receives a total of 2 weekly downloads. As such, @openscd/oscd-filtered-list popularity was classified as not popular.
We found that @openscd/oscd-filtered-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.