Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
primeng-shadowdom-directives
Advanced tools
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
):
[!TIP] Once you import this module library, it'll automatically handle most of components (those marked as No directive required), the rest will need to pass directive explicitly
psdMenu
)psdOverlayPanel
)psdSlideMenu
)psdSplitButton
)psdTieredMenu
)psdInputMask
)psdMenu
)psdAutoComplete
)psdMegaMenu
)psdMenuBar
)psdOverlayPanel
)psdSlideMenu
)psdSplitButton
)psdTieredMenu
)psdInputMask
)psdCalendar
)psdDropdown
)psdPaginator
)psdMultiSelect
)psdAutoComplete
)psdCascadeSelect
)psdMegaMenu
)psdMenuBar
)psdConfirmPopup
)psdOverlayPanel
)psdTreeSelect
)psdInputMask
)To request for new component, please submit issue or PR
This package is available on npm registry. Install it with command:
# for Angular 18
npm install primeng-shadowdom-directives@^18.0.0
# for Angular 17
npm install primeng-shadowdom-directives@^17.0.0
# for Angular 16
npm install primeng-shadowdom-directives@^1.0.0
# 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 820 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 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.