Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@commercetools-uikit/data-table-manager
Advanced tools
> THIS COMPONENT IS IN BETA! > Please be aware that it may be subject to upcoming breaking changes as it's still in active development.
THIS COMPONENT IS IN BETA! Please be aware that it may be subject to upcoming breaking changes as it's still in active development.
This component enhances the <DataTable>
component and additionally provides a UI and state management to handle configuration of the table such as column manager.
disableDisplaySettings
enables / disables the display settings panel, allowing the user to select wrapping text and density display options.disableColumnManager
enables / disables the column manager panel, allowing the user to select which columns are visible.Both panels delegate the handling of the settings change on the parent through function properties, allowing the settings to be persisted or just used as state props.
import DataTableManager from '@commercetools-uikit/data-table-manager';
import DataTable from '@commercetools-uikit/data-table';
const rows = [
{ id: 'parasite', title: 'Parasite', country: 'South Korea' },
{ id: 'portrait', title: 'Portrait of a Lady on Fire', country: 'France' },
{ id: 'wat', title: 'Woman at War', country: 'Iceland' },
];
const columns = [
{ key: 'title', label: 'Title' },
{ key: 'country', label: 'Country' },
];
return (
<DataTableManager columns={columns}>
<DataTable rows={rows} />
</DataTableManager>
);
Check the
DataTable
properties here
Props | Type | Required | Default | Description |
---|---|---|---|---|
topBar | node | - | - | Node element to place on the left corner of the table settings dropdown option row. |
displaySettings | object | - | - | Object containing the properties for the display settings management. |
columnManager | object | - | - | Object containing the properties for the column manager. |
onSettingsChange | func | - | - | Function triggered when any of the properties within displaySettings or columnManager is modified. Should implement the following interface: (action: string, nextValue: object): void |
An object containing the properties to handle text-wrapping and density-display options over the table
Props | Type | Required | Default | Description |
---|---|---|---|---|
disableDisplaySettings | bool | - | true | Enable this flag to enable display settings panel option. |
isCondensed | boolean | - | false | Set this to true to reduce the paddings of all cells, allowing the Table to display more data in less space. Required if disableDisplaySettings is set to true . |
isWrappingText | boolean | - | false | Set this to true to set truncation on all cells. Required if disableDisplaySettings is set to true . |
primaryButton | PrimaryButton | - | - | UIKit Primary Button element to set at the bottom right to be used as primary action in case the display settings is working as a form. |
secondaryButton | SecondaryButton | - | - | UIKit Secondary Button element to set at the bottom right to be used as secondary action in case the display settings is working as a form. |
An object containing the properties to handle the visibility of the columns and the order in which are shown over the table
Props | Type | Required | Default | Description |
---|---|---|---|---|
disableColumnManager | bool | - | true | Enable this flag to enable column manager panel option. |
visibleColumnKeys | array of string | - | - | Visible columns keys. Required if disableColumnManager is true . |
hideableColumns | array of object | - | - | Columns to be managed by the column manager. Required if disableColumnManager is true . |
areHiddenColumnsSearchable | bool | - | - | Enable this flag to set a search input for the hidden columns panel. |
searchHiddenColumns | func | - | - | Function called when the search input for the hidden columns change. |
searchHiddenColumnsPlaceholder | string | - | - | Placeholder for the search input for the hidden columns. |
primaryButton | PrimaryButton | - | - | UIKit Primary Button element to set at the bottom right to be used as primary action in case the display settings is working as a form. |
secondaryButton | SecondaryButton | - | - | UIKit Secondary Button element to set at the bottom right to be used as secondary action in case the display settings is working as a form. |
FAQs
This component enhances the DataTable component and additionally provides a UI and state management to handle configuration of the table such as column manager.
The npm package @commercetools-uikit/data-table-manager receives a total of 2,299 weekly downloads. As such, @commercetools-uikit/data-table-manager popularity was classified as popular.
We found that @commercetools-uikit/data-table-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.