Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@petrocloud/angular-dayparts
Advanced tools
Angular directive for select hours in a week.
Sample 1 Sample 2
Include the module in your app
angular.module('myapp', ['angular-dayparts'])
Configure the directive inside the controller
$scope.options = {
// Reset button
reset: true, // default false
// Event triggered when selecting a cell
onChange: function(selected) {
console.log('selected: ', selected)
},
// Prepopulated cells
selected: ['monday-14', 'monday-15', 'monday-15.5'], // monday 2:00 pm, monday 3:00 pm, monday 3:30 pm
// When true clicking on the day name it will select the entire row
disableRowSelection: true, // default false
// When true clicking on the hour it will select the entire columns
disableColumnSelection: true // default false,
// Reverses x and y axis so time goes from left to right and day goes top to bottom (i.e. sample1 is `reverse: true`)
reverse: true, // default false
// adds "midnight" and "noon" labels to 12:00 am and 12:00 pm times.
twelveOClockLabel: true // default false
};
Call the directive from your page
<angular-dayparts options="options"></angular-dayparts>
Install dependencies:
npm install
Compile:
gulp
Run web server in at the root example:
- cd angular-dayparts
- http-server
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://localhost:8080
Hit CTRL-C to stop the server
Released under the terms of MIT License.
FAQs
Angular directive for select hours in a week
The npm package @petrocloud/angular-dayparts receives a total of 1 weekly downloads. As such, @petrocloud/angular-dayparts popularity was classified as not popular.
We found that @petrocloud/angular-dayparts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.