Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
primeng-shadowdom-directives
Advanced tools
Readme
Set of directives to fix PrimeNg "overlay" components got-chas when rendered inside ShadowDOM
Below are list of components that currently supported (all directives start with prefix psd = PrimeNg ShadowDOM Directive
):
psdMenu
)psdAutoComplete
)psdMegaMenu
)psdMenuBar
)psdOverlayPanel
)psdSlideMenu
)psdSplitButton
)psdTieredMenu
)psdInputMask
)psdCalendar
)psdDropdown
)psdPaginator
)psdMultiSelect
)psdAutoComplete
)psdCascadeSelect
)psdMegaMenu
)psdMenuBar
)psdConfirmPopup
)psdOverlayPanel
)psdTreeSelect
)psdInputMask
)Note that not all components need custom directive, since this library already contains some logics which reduce the effort of writing custom directive for those components. That means for components marked as No directive required, they just work.
To request for new component, please submit issue or PR
This package is available on npm registry. Install it with command:
# for Angular >= 16
npm install primeng-shadowdom-directives
# for Angular < 16
npm install primeng-shadowdom-directives@^0.2.2
Import this package into your module where you want to apply these directives (normally will be app.module.ts
)
import { PrimeNGShadowDOMDirective } from 'primeng-shadowdom-directives';
@NgModule({
imports: [
PrimeNGShadowDOMDirective, // import here
...
],
})
export class AppModule { }
Then in your component file, apply the directives:
<!-- dropdown -->
<p-dropdown psdDropdown ...></p-dropdown>
<!-- calendar -->
<p-calendar psdCalendar ...></p-calendar>
<!-- multi select -->
<p-multiSelect psdMultiSelect ...></p-multiSelect>
<!-- and others -->
Check projects/demo-app
to see samples on how to use this package.
To run the demo, first run
npm install
Then build the directives:
npm run build
# watch mode
npm run watch
Finally start the demo-app:
npm start
Now you can access from browser at: http://localhost:4200
FAQs
Directives that make PrimeNG plays nicely with ShadowDOM
The npm package primeng-shadowdom-directives receives a total of 596 weekly downloads. As such, primeng-shadowdom-directives popularity was classified as not popular.
We found that primeng-shadowdom-directives demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.