![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@cpelements/plcc-table
Advanced tools
Product lifecycle table web component.
Describe how best to use this web component along with best practices.
<plcc-table>
</plcc-table>
product-name
Use this attribute when fetching data from the api. Pass the product name as the value for the api's path to use.
<plcc-table product-name="Red Hat Enterprise Linux"></plcc-table>
hide-eol
When this attribute is present, the End of Life versions will be hidden
<plcc-table product-name="Red Hat Enterprise Linux" hide-eol></plcc-table>
toggle-eol
Use this attribute to add a checkbox to toggle End of Life versions (default set to show all versions)
<plcc-table product-name="Red Hat Enterprise Linux" toggle-eol></plcc-table>
toggle-eol hide-eol
When these two attributes could be used together, all End of Life versions will be hidden by default
<plcc-table product-name="Red Hat Enterprise Linux" toggle-eol hide-eol></plcc-table>
expandable
Use this attribute to make version category expandable
<plcc-table product-name="Red Hat Enterprise Linux" expandable></plcc-table>
To enable compact styles add a class of 'compact' to the <plcc-table>
tag
<plcc-table product-name="Red Hat Enterprise Linux" class="compact"></plcc-table>
Here's a basic example on now to pass data to the component. This data must match the structure provided by the api in order for the component to render properly.
<plcc-table id="someId" type="app"></plcc-table>
<script>
const data = {someObject};
const plccExampleTable = document.querySelector("#someId");
plccExampleTable.tableData = data;
</script>
Run this command from the cp-elements root and select plcc-table. This will start the plcc-table demo. You can test your changes here.
npm start
npm run build
Once you have merged your changes we need to publish to NPM.
Here's steps you can use to publish the component:
"name": "@cpelements/plcc-table"
) is correctnpm version
command, e.g. run npm version patch
from the component folder.npm run build
(this will make sure the JS will have the proper version in the compiled code)npm publish --access=public
Since the lifecycle application is pulling in the component via NPM, the plcc-table is now ready to be used. However, Product lifecycle pages (e.g. Openshift) pull in the component via chrometwo_require, so the new component version will need to be released to CP-CHROME to be used on these pages. Please contact Tyler Martin or anyone on the DXP-FED team to release the new version in CP-CHROME.
FAQs
Plcc table element for PatternFly Elements
The npm package @cpelements/plcc-table receives a total of 24 weekly downloads. As such, @cpelements/plcc-table popularity was classified as not popular.
We found that @cpelements/plcc-table demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.