Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@angular/material-moment-adapter
Advanced tools
@angular/material-moment-adapter is an Angular package that provides a Moment.js adapter for Angular Material's datepicker. It allows you to use Moment.js to parse, format, and manipulate dates within Angular Material components.
Date Adapter Configuration
This code demonstrates how to configure the Moment.js date adapter in an Angular module. It imports the necessary modules and sets the adapter options to use UTC.
import { NgModule } from '@angular/core';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatMomentDateModule, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
@NgModule({
imports: [
MatDatepickerModule,
MatMomentDateModule
],
providers: [
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
]
})
export class AppModule { }
Using Moment.js with Angular Material Datepicker
This code shows how to use Moment.js with Angular Material's datepicker component. It initializes a date using Moment.js and binds it to the datepicker input.
import { Component } from '@angular/core';
import * as moment from 'moment';
@Component({
selector: 'app-datepicker',
template: '<mat-form-field><input matInput [matDatepicker]="picker" placeholder="Choose a date"><mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle><mat-datepicker #picker></mat-datepicker></mat-form-field>'
})
export class DatepickerComponent {
selectedDate = moment();
}
@angular/material-luxon-adapter provides a Luxon adapter for Angular Material's datepicker. Luxon is a modern JavaScript date library that offers a more comprehensive and immutable API compared to Moment.js. It is a good alternative if you prefer using Luxon over Moment.js.
@angular/material-date-fns-adapter provides a date-fns adapter for Angular Material's datepicker. date-fns is a lightweight and modular date library that allows you to import only the functions you need. It is a good alternative if you are looking for a smaller bundle size and tree-shakable date library.
The sources for this package are in the main Angular Material repo. Please file issues and pull requests against that repo.
License: MIT
19.0.0-next.9 "howlite-headband" (2024-10-17)
MapMarkerClusterer
class has been renamed to DeprecatedMapMarkerClusterer
.map-marker-clusterer
selector has been changed to deprecated-map-marker-clusterer
.| Commit | Type | Description | | -- | -- | -- | | a05475e76 | feat | deprecate marker cluster component | | c70aae15b | feat | implement new marker clusterer | | b9deeee85 | fix | add schematic to switch to the new clusterer name |
| Commit | Type | Description |
| -- | -- | -- |
| a58e6f671 | feat | core: add theme-overrides mixin (#29858) |
| 486990912 | feat | core: rename theme mixin (#29857) |
| 9c3af284f | feat | schematics: Switch custom theme schematic to use theme mixin instead of define-theme and add high contrast override mixins (#29642) |
| 371446a7c | feat | theming: Disambiguate token names in theme overrides (#29859) |
| cc0532bb2 | fix | badge: content incorrectly truncated in M3 (#29854) |
| 9262a018b | fix | card: elevated card container color (#29835) |
| 613cf5406 | fix | core: rename sys vars from mat-app to mat-sys (#29879) |
| da9cb714e | fix | dialog: updates dialog max-height in landscape (#29853) |
| 48b2680f6 | fix | form-field: account in cols
attribute on textarea (#29836) |
| e975bb949 | fix | radio: use tokens for focused border color (#29716) |
| Commit | Type | Description | | -- | -- | -- | | 3b4ade5a0 | fix | tree: only handle keyboard events directly from the node (#29861) |
<!-- CHANGELOG SPLIT MARKER --><a name="19.0.0-next.8"></a>
FAQs
Angular Material Moment Adapter
The npm package @angular/material-moment-adapter receives a total of 85,465 weekly downloads. As such, @angular/material-moment-adapter popularity was classified as popular.
We found that @angular/material-moment-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.